summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-01-07mesa: set version string to 7.10mesa-7.10Ian Romanick2-2/+2
2011-01-07docs: Update 7.10 release notesIan Romanick1-4/+2736
2011-01-07docs: Import 7.9.1 release notes from 7.9 branchIan Romanick1-0/+404
(cherry picked from commit 46a360b26a4d5e9ff8e00388605799ed60849a03)
2011-01-07r600c: fix up SQ setup in blit code for Ontario/NIAlex Deucher1-1/+87
2011-01-07r300/compiler: disable the rename_regs pass for loopsMarek Olšák1-0/+8
This workaround fixes rendering of kwin thumbnails. NOTE: This is a candidate for the 7.9 and 7.10 branches. (cherry picked from commit 8543902bfbdfc15c39525bd99bee22e2f2126e74)
2011-01-06r600g: support up to 64 shader constantsAlex Deucher2-1/+20
From the r600 ISA: Each ALU clause can lock up to four sets of constants into the constant cache. Each set (one cache line) is 16 128-bit constants. These are split into two groups. Each group can be from a different constant buffer (out of 16 buffers). Each group of two constants consists of either [Line] and [Line+1] or [line + loop_ctr] and [line + loop_ctr +1]. For supporting more than 64 constants, we need to break the code into multiple ALU clauses based on what sets of constants are needed in that clause. Note: This is a candidate for the 7.10 branch. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-01-06r600c: add support for NI asicsAlex Deucher5-1/+118
2011-01-06r600g: add support for NI (northern islands) asicsAlex Deucher7-0/+118
This adds support for barts, turks, and caicos.
2011-01-06r600g: hack around property unknown issues.Dave Airlie1-0/+2
should fix https://bugs.freedesktop.org/show_bug.cgi?id=32619 Need to add proper support for properties later. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-01-06r600g: remove useless switch statementsAlex Deucher2-105/+0
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-01-06r600g: fix evergreen segfaults.Dave Airlie1-1/+1
evergreen was crashing running even gears here. This is a 7.10 candidate if its broken the same. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-01-06r600g: avoid segfaultJerome Glisse2-2/+2
Candidates 7.10 Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-01-06r600g: properly unset vertex bufferJerome Glisse3-12/+22
Fix bug http://bugs.freedesktop.org/show_bug.cgi?id=32455 Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-01-06r600g: need to reference upload buffer as the might still live accross flushJerome Glisse2-2/+4
Can't get away from referencing upload buffer as after flush a vertex buffer using the upload buffer might still be active. Likely need to simplify the pipe_refence a bit so we don't waste so much cpu time in it. candidates for 7.10 branch Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-01-06r600g: fix segfault when translating vertex bufferJerome Glisse4-21/+10
Note the support for non float vertex draw likely regressed need to find what we want to do there. candidates for 7.10 branches Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-01-06r600g: fix bo size when creating bo from handleJerome Glisse1-1/+1
Spoted by Alex Diomin Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-01-06glsl: Allow less restrictive uses of sampler array indexing in GLSL <= 1.20Ian Romanick1-4/+24
GLSL 1.10 and 1.20 allow any sort of sampler array indexing. Restrictions were added in GLSL 1.30. Commit f0f2ec4d added support for the 1.30 restrictions, but it broke some valid 1.10/1.20 shaders. This changes the error to a warning in GLSL 1.10, GLSL 1.20, and GLSL ES 1.00. There are some spurious whitespace changes in this commit. I changed the layout (and wording) of the error message so that all three cases would be similar. The 1.10/1.20 and 1.30 text is the same. The only difference is that one is an error, and the other is a warning. The GLSL ES 1.00 wording is similar but not quite the same. Fixes piglit test spec/glsl-1.10/compiler/constant-expressions/sampler-array-index-02.frag and bugzilla #32374.
2011-01-06i965: skip too small size mipmapZou Nan hai1-2/+4
this fixes doom3 crash.
2011-01-05i965: use BLT to clear buffer if possible on SandybridgeXiang, Haihao1-6/+0
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=32713 (cherry picked from commit 266d8eed6927650a55974a293959fe21073030bb)
2011-01-05autoconf: Fix --with-driver=xlib --enable-openvg.Chia-I Wu1-5/+1
st/egl should be enabled with --enable-openvg even the driver is xlib or osmesa. Also, GLX_DIRECT_RENDERING should not be defined because libdrm is not checked. (cherry picked from commit ada9c78c29ef11720d464211c098b740f8aa11a4)
2011-01-05docs: Add an example for EGL_DRIVERS_PATH.Chia-I Wu1-0/+10
EGL_DRIVERS_PATH can be set to test EGL without installation. (cherry picked from commit cba77869547f8edb1c1fdafcf457bccc4097042b)
2011-01-04intel: When validating an FBO's combined depth/stencil, use the given FBO.Eric Anholt1-4/+4
We were looking at the current draw buffer instead to see whether the depth/stencil combination matched. So you'd get told your framebuffer was complete, until you bound it and went to draw and we decided that it was incomplete. (cherry picked from commit b7b2791c6bea6ad0db76fdad9a217aa1efffea93)
2011-01-04intel: Fix segfaults from trying to use _ColorDrawBuffers in FBO validation.Eric Anholt1-4/+16
The _ColorDrawBuffers is a piece of computed state that gets for the current draw/read buffers at _mesa_update_state time. However, this function actually gets used for non-current draw/read buffers when checking if an FBO is complete from the driver's perspective. So, instead of trying to just look at the attachment points that are currently referenced by glDrawBuffers, look at all attachment points to see if they're driver-supported formats. This appears to actually be more in line with the intent of the spec, too. Fixes a segfault in my upcoming fbo-clear-formats piglit test, and hopefully bug #30278 (cherry picked from commit 0ea49380e20bdf76cd0e434d3d431ca9f526f1f1)
2011-01-04intel: Add a couple of helper functions to reduce rb code duplication.Eric Anholt5-138/+78
(cherry picked from commit e339b669a14f37698b842c0c51c1f5e4001ef12f)
2011-01-04intel: Add spans code for the ARB_texture_rg support.Eric Anholt2-0/+154
This starts spantmp2.h down the path of using MESA_FORMAT_* for specifying the format instead of the crazy GL format/type combo. (cherry picked from commit 28bab24e1698843e27d27204a1117066e7ffeabb)
2011-01-04intel: Use tri clears when we don't know how to blit clear the format.Eric Anholt3-7/+10
Bug #32207. Fixes ARB_texture_rg/fbo-clear-formats (see my fbo-clear-formats piglit branch currently) (cherry picked from commit 30fef21aa34667d332669f1445de74b49994eb0e)
2011-01-04intel: Handle forced swrast clears before other clear bits.Eric Anholt1-22/+20
Fixes a potential segfault on a non-native depthbuffer, and possible accidental swrast fallback on extra color buffers. (cherry picked from commit 94ed481131e4f5ba2c83fe7f3b12715661660133)
2011-01-04intel: Only do frame throttling at glFlush time when using frontbuffer.Eric Anholt1-1/+2
This is the hack for input interactivity of frontbuffer rendering (like we do for backbuffer at intelDRI2Flush()) by waiting for the n-2 frame to complete before starting a new one. However, for an application doing multiple contexts or regular rebinding of a single context, this would end up lockstepping the CPU to the GPU because every unbind was considered the end of a frame. Improves WOW performance on my Ironlake by 48.8% (+/- 2.3%, n=5) (cherry picked from commit b01b73c482474609aceb6bb13b083e96c06ba353)
2011-01-04i965: Fix provoking vertex select in clip state for sandybridgeZhenyu Wang1-1/+4
Triangle fan provoking vertex for first convention should be 'vertex 1' in sandybridge clip state. Partly fix glean/clipFlat case (cherry picked from commit 9977297ad9bc0e816810bd3a39d89e5c1cffff72)
2011-01-04i965: Use last vertex convention for quad provoking vertex on sandybridgeZhenyu Wang1-0/+7
Until we know how hw converts quads to polygon in beginning of 3D pipeline, for now unconditionally use last vertex convention. Fix glean/clipFlat case. (cherry picked from commit bea6539abff17f39c822ac9c1c94f8249c396b18)
2011-01-04i965: Do lowering of array indexing of a vector in the FS.Eric Anholt1-0/+1
Fixes a regression in ember since switching to the native FS backend, and the new piglit tests glsl-fs-vec4-indexing-{2,3} for catching this. (cherry picked from commit df4d83dca4618eb7077637865763d3e9ab750d11)
2011-01-04i965: Fix regression in FS comparisons on original gen4 due to gen6 changes.Eric Anholt2-4/+32
Fixes 26 piglit cases on my GM965. (cherry picked from commit 54df8e48bcceacbfa468d5237f2981b26493df29)
2011-01-04i965: Factor out the ir comparision to BRW_CONDITIONAL_* code.Eric Anholt1-80/+34
(cherry picked from commit 74dffb39c3434b590b36833905f2b12a6e3477e9)
2011-01-04i965: Improve the hacks for ARB_fp scalar^scalar POW on gen6.Eric Anholt1-36/+17
This is still awful, but my ability to care about reworking the old backend so we can just get a temporary value into a POW is awfully low since the new backend does this all sensibly. Fixes: fp1-LIT test 1 fp1-LIT test 3 (case x < 0) fp1-POW test (exponentiation) fp-lit-mask (cherry picked from commit d88aa6fe3e9e08af332a900c69bf2bf5c4420e90)
2011-01-04r300/compiler: Fix black terrain in Civ4Tom Stellard1-8/+1
rc_inst_can_use_presub() wasn't checking for too many RGB sources in Alpha instructions or too many Alpha sources in RGB instructions. (cherry picked from commit e96e86d07be86ce12628d750ff686d6aea919fff)
2011-01-04i965: Internally enable GL_NV_blend_square on ES2.Kenneth Graunke1-0/+1
Hopefully should fix bug #32520. (cherry picked from commit 6bb1e4541eb707d525163987b167bd974c87067e)
2011-01-04i965: Flatten if-statements beyond depth 16 on pre-gen6.Kenneth Graunke1-0/+10
Gen4 and Gen5 hardware can have a maximum supported nesting depth of 16. Previously, shaders with control flow nested 17 levels deep would cause a driver assertion or segmentation fault. Gen6 (Sandybridge) hardware no longer has this restriction. Fixes fd.o bug #31967. (cherry picked from commit 634a7dce9c1d9e4a8576ff8197c8adaea7e9ddd1)
2011-01-04glsl: Support if-flattening beyond a given maximum nesting depth.Kenneth Graunke3-7/+39
This adds a new optional max_depth parameter (defaulting to 0) to lower_if_to_cond_assign, and makes the pass only flatten if-statements nested deeper than that. By default, all if-statements will be flattened, just like before. This patch also renames do_if_to_cond_assign to lower_if_to_cond_assign, to match the new naming conventions. (cherry picked from commit 9ac6a9b2fa45debac63f2e2b20d78c4776d06e37)
2011-01-04mesa: fix texel store functions for some float formatsMarek Olšák1-10/+17
These are copy-paste errors obviously. (cherry picked from commit bf7b6f60aea3caa12c858271af167387fc0cfa4e)
2011-01-04Refresh autogenerated file builtin_function.cpp.Ian Romanick1-87/+34
See also a954dbeb.
2011-01-04glsl/builtins: Compute the correct value for smoothstep(vec, vec, vec).Kenneth Graunke1-87/+34
These mistakenly computed 't' instead of t * t * (3.0 - 2.0 * t). Also, properly vectorize the smoothstep(float, float, vec) variants. NOTE: This is a candidate for the 7.9 and 7.10 branches. (cherry picked from commit d7423a653175352c5e2017f1de647bc7ef5ede43)
2011-01-04st/mesa: fix renderbuffer pointer check in st_Clear()Brian Paul1-6/+2
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=30694 NOTE: This is a candidate for the 7.9 and 7.10 branches. (cherry picked from commit efbd33aff93d875af95d40db018b7911a3f87d02)
2011-01-03Remove OES_compressed_paletted_texture from the ES2 extension list.Kenneth Graunke1-2/+0
We don't support it. (cherry picked from commit d0f8eea9a06d8268a21ac58b134964a602f9594e)
2011-01-03glsl: new glsl_strtod() wrapper to fix decimal point interpretationBrian Paul8-229/+329
We always want to use '.' as the decimal point. See http://bugs.freedesktop.org/show_bug.cgi?id=24531 NOTE: this is a candidate for the 7.10 branch. (cherry picked from commit bb10e081c8ddc452bca44ba583f239219a5b9372)
2011-01-03ir_to_mesa: Don't generate swizzles for record derefs of non-scalar/vectorsIan Romanick1-1/+7
This is the same as what the array dereference handler does. Fixes piglit test glsl-link-struct-array (bugzilla #31648). NOTE: This is a candidate for the 7.9 and 7.10 branches. (cherry picked from commit 2d577ee730c30caacf711babde6542766aa0b655)
2011-01-03linker: Allow built-in arrays to have different sizes between shader stagesIan Romanick1-8/+29
Fixes pitlit test glsl-link-varying-TexCoord (bugzilla #31650). (cherry picked from commit cb2b547a4771ddf56975ede566dbf3a8f5389689)
2011-01-03glsl: Inherrit type of declared variable from initializer after processing ↵Ian Romanick1-8/+17
assignment do_assignment may apply implicit conversions to coerce the base type of initializer to the base type of the variable being declared. Fixes piglit test glsl-implicit-conversion-02 (bugzilla #32287). This probably also fixes bugzilla #32273. NOTE: This is a candidate for the 7.9 branch and the 7.10 branch. (cherry picked from commit d7f27e2e76eac9bc2ee0fa36f52542fdcb9563dd)
2010-12-31st/mesa: Handle wrapped depth buffers in st_copy_texsubimage().Henri Verbeet1-0/+3
(cherry picked from commit 59051ad44310d7f744fcb0706326564990b554dd)
2010-12-29r600g: fix pow(0, 0) evaluating to NaNFredrik Höglund1-1/+1
We have to use the non-IEEE compliant version of MUL here, since log2(0) is -inf, and 0 * -inf is NaN in IEEE arithmetic. candidates for 7.10 branch
2010-12-29r600g: fix rendering with a vertex attrib having a zero strideAlex Deucher1-4/+6
The hardware supports zero stride just fine. This is a port of 2af8a1983180fc0168c1e0e53bcc69ee3d684ea4 from r300g. NOTE: This is a candidate for both the 7.9 and 7.10 branches. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>