summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2009-02-20i965: var renaming, clean-upBrian Paul
2009-02-20i965: added commentBrian Paul
2009-02-20intel: fix datatype typo, s/GLboolean/GLuint/Brian Paul
Fixes mysterious failures in glean glsl1 test.
2009-02-20i965: additional debug outputBrian Paul
2009-02-20glsl: rename GLSL texture assembly instructions to be more legibleBrian Paul
2009-02-20glsl: fix vec4_texp_rect IR code (need projective version)Brian Paul
2009-02-19mesa: support GL_EXT_stencil_two_side in gallium/mesa state trackerBrian Paul
Since Ian's patch of a few weeks ago, we can enable all three variations of two-sided stencil. Update the state tracker to handle the extra back- face state and turn on the EXT. Note: there's a new Glean test for two-sided stencil now...
2009-02-19mesa: fix/update/restore comments related to two-sided stencilBrian Paul
2009-02-19mesa: initialize ctx->Stencil._BackFace = 1Brian Paul
Back-face stencil operations didn't work correctly because this value was zero. It needs to be 1 or 2. The only place it's set otherwise is in glEnable/Disable(GL_STENCIL_TEST_TWO_SIDE_EXT).
2009-02-18r300: make DRI2 not crash on compiz startDave Airlie
2009-02-18radeon: move device param id check ifndefDave Airlie
2009-02-17radeon: initialise swapped objects pointerDave Airlie
2009-02-17radeon: legacy texMem interface fixups.Dave Airlie
The texmem.c interface is wildly messed up it really wants to own the objects so let it, pain in the ass but this code should work a lot better now
2009-02-17Revert "dri/radeon: export a function to cleanup a texture object."Dave Airlie
This reverts commit 5325f8624093bb1ec30d581b4ff64218ceab99f9.
2009-02-17radeon/r200: drop legacy texture heap codeDave Airlie
2009-02-17radeon/r200: fixup texturing aging callsDave Airlie
2009-02-17radeon: fixup destroy texture object exit path and update LRUDave Airlie
the destroy path was doing bad things with structure names, make it do less bad things, use container_of instead
2009-02-17radeon: remove leftover debugDave Airlie
2009-02-17radeon/r200: drop dirty state from texture object + pp_txoffsetDave Airlie
this is just more code cleanup for old dead code
2009-02-17r200: align with r100 codeDave Airlie
2009-02-17radeon: fix not emitting texture state correctlyDave Airlie
this is whole texture dirty bit is probably not needed with the current codebase, need to revisit
2009-02-17radeon: steal miptree optimisation from intel codebaseDave Airlie
This replaces a miptree if it won't distrub anything else.
2009-02-17radeon: move YUV on first texunit check after hw state is setupDave Airlie
2009-02-17dri/radeon: export a function to cleanup a texture object.Dave Airlie
The radeon legacy code want to cleanup not free the texture obj, so export a function to do that and wrap it.
2009-02-16radeon: fix texcompress2 test.Dave Airlie
this makes compressed subimages work properly.
2009-02-16radeon: fix compressed tex subimage unpack parameterDave Airlie
2009-02-15radeon: add cflags to decide whether to link libdrm_radeon or not.Dave Airlie
You don't need libdrm_radeon for the legacy driver to build, only for the experimental mm/cs paths.
2009-02-14radeon-common: Fix crash in glGetTexImageNicolai Haehnle
Since texture images are now stored in miptrees, we cannot usually access them directly via the Data pointer. So we wrap Mesa's implementation by map/unmap calls. This crash was triggered by Sauerbraten, Piglit now contains a regression test. Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-02-14r300: Fix crash in cubemap tree creationNicolai Haehnle
The mip tree creation would crash if the first baselevel image to be uploaded was not the positive-x image. Found with Sauerbraten, also added a regression test to Piglit. Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-02-19mesa: Free the util shaders with the gallium's FREE.José Fonseca
2009-02-14r300: Redirect constant TEX coordinatesNicolai Haehnle
R3xx/R5xx fragment program texture constants must come from a hardware register instead of the constant file, so we redirect if necessary during the native rewrite phase. The symptoms of this bug started appearing when the Mesa fixed function texenvprogram code started using STATE_CURRENT_ATTRIB constants for texture coordinates when the corresponding attributes were constant across all vertices. Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-02-14r300: Fix R300_CMD_SCRATCH on big endian.Michel Dänzer
2009-02-14radeon: remove unused radeon_compat.cDave Airlie
2009-02-14r200: fixup cube emit debugDave Airlie
2009-02-14r200: fix another cmdbuf sizing issueDave Airlie
2009-02-18mesa: convert VERT_RESULT_* from #defines to enum, like the othersBrian Paul
2009-02-18glsl: asst improvements, clean-ups in set_program_uniform()Brian Paul
Move the is_boolean/integer_type() calls out of the loops. Move the is_sampler_type() function near the bool/int functions. Add a bunch of comments.
2009-02-18glsl: fix inequality in set_program_uniform()Brian Paul
We were off by one when checking for too many uniform values.
2009-02-18glsl: fix link failure for variable-indexed varying output arraysBrian Paul
If the vertex shader writes to a varying array with a variable index, mark all the elements of that array as being written. For example, if the vertex shader does: for (i = 0; i < 4; i++) gl_TexCoord[i] = expr; Mark all texcoord outputs as being written, not just the first. Linking will fail if a fragment shader tries to read an input that's not written by the vertex shader. Before this fix, this linker test could fail.
2009-02-18swrast: Set vp_override flag during DrawPixelsNicolai Haehnle
Obviously, the color of fragments produced by DrawPixels is not constant, even if the current vertex array / vertex program state indicates that the color for normal rendering will be constant. Therefore, we need to override certain optimisations that have been added to texenvprogram.c Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-02-18mesa: improved error msgBrian Paul
2009-02-18mesa: increase MAX_UNIFORMS to 1024 (of vec4 type)Brian Paul
Old limit was 256. Note that no arrays are declared to this size. The only place we have to be careful about raising this limit is the prog_src/dst_register Index bitfields. These have been bumped up too. Added assertions to check we don't exceed the bitfield in the future too.
2009-02-18glsl: fix a swizzle-related regressionBrian Paul
This new issue was exposed by commit 6eabfc27f19a10dfc2663e99f9560966ba1ff697
2009-02-18Merge branch 'gallium-texture-transfer'Michel Dänzer
Conflicts: src/gallium/drivers/softpipe/sp_tile_cache.c
2009-02-16gallium: fix mergeKeith Whitwell
It looks like I resolved the merge conflicts but did not save my emacs buffers before committing...
2009-02-16Merge branch 'master' into gallium-texture-transferKeith Whitwell
Conflicts: src/mesa/state_tracker/st_cb_accum.c src/mesa/state_tracker/st_cb_drawpixels.c
2009-02-16mesa: remove old commentsBrian Paul
Note: the default value for EmitCondCodes is FALSE. This means the GLSL compiler will emit code like this: SEQ TEMP[0].x, A, B; IF TEMP[0].x; ... ENDIF But if EmitCondCodes is TRUE, condition codes will be used instead: SEQ.C TEMP[0].x, A, B; IF (NE.xxxx); ... ENDIF
2009-02-16i965: tell GLSL compiler to emit code using condition codesBrian Paul
The default for EmitCondCodes got flipped when gallium-0.2 was merged. This fixes GLSL if/else/endif regressions. Drivers that use GLSL should always explicitly set the flag to be safe.
2009-02-16glsl: silence some uninit var warningsBrian Paul
2009-02-14r300: Redirect constant TEX coordinatesNicolai Haehnle
R3xx/R5xx fragment program texture constants must come from a hardware register instead of the constant file, so we redirect if necessary during the native rewrite phase. The symptoms of this bug started appearing when the Mesa fixed function texenvprogram code started using STATE_CURRENT_ATTRIB constants for texture coordinates when the corresponding attributes were constant across all vertices. Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>