summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* fix debug output mising from edgeflag changesRoland Scheidegger2009-12-182-7/+7
|
* gallium: fix mesa to tgsi translation for edgeflagsRoland Scheidegger2009-12-183-15/+31
| | | | test apps (progs/trivial/tri-edgeflags and similar) seem to work now
* gallium: edgeflags change fixesRoland Scheidegger2009-12-163-17/+32
| | | | | | use correct number of vertex inputs fix not running pipeline in case of edgeflags changes to mesa to tgsi translation still very broken
* gallium: more work for edgeflags changesRoland Scheidegger2009-12-144-14/+19
| | | | | fixes, cleanups, etc. not working yet
* gallium: first steps to treat edgeflags as regular vertex elementKeith Whitwell2009-12-095-76/+46
| | | | | | | | | | The idea here is to eliminate the set_edgeflags() call in pipe_context by treating edgeflags as a regular vertex element. Edgeflags provoke special treatment in hardware, which means we need to label them in some way, in this case we'll be passing them through the vertex shader and labelling the vertex shader output with a new TGSI semantic (TGSI_SEMANTIC_EDGEFLAG).
* Merge branch 'gallium-strict-aliasing'Roland Scheidegger2009-12-084-35/+47
|\
| * gallium: fix more potential strict aliasing issuesRoland Scheidegger2009-12-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, gcc man page warns that union a_union { int i; double d; }; int f() { double d = 3.0; return ((union a_union *) &d)->i; } "might" not be ok (why not?), even though it doesn't seem to generate any warnings. Hence don't use this and do the extra step to actually use assignment to get the values in/out of the union. This changes parts of 3456f9149b3009fcfce80054759d05883d3c4ee5.
| * mesa: fix shader prog_execute strict aliasing violationsRoland Scheidegger2009-12-071-18/+32
| | | | | | | | use unions instead of pointer casts.
| * gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safeRoland Scheidegger2009-12-071-1/+1
| | | | | | | | | | | | | | | | use pointer to union instead of void pointer. gcc complained a lot, depending what the pointer originally actually was. Looks like it's in fact maybe legal to cast for instance uint pointers to union pointers as long as union contains a uint type, hence use this with some callers, other just use union util_color in the first place.
| * mesa: fix strict aliasing issues in half-to-float/float-to-half conversionsRoland Scheidegger2009-12-071-8/+9
| | | | | | | | use union instead of casts
| * mesa: use _mesa_memcpy for COPY_4FV macroRoland Scheidegger2009-12-031-8/+3
| | | | | | | | | | | | | | Gets rid of one of the worst strict-aliasing offenders, and actually produces faster code (at least in some cases, when compiler can use for instance 64bit moves for memcpy). (note _mesa_memcpy should get inlined)
* | r600: and finally fix SCSAndre Maasikas2009-12-081-51/+46
| |
* | r600: remove (now) dead codeAndre Maasikas2009-12-082-303/+2
| |
* | r600: fix SIN alsoAndre Maasikas2009-12-082-12/+6
| |
* | r600: use the new inline constants feature to fix COSAndre Maasikas2009-12-081-1/+36
| |
* | r600: add assembler support for literal(inline) constantsAndre Maasikas2009-12-082-21/+49
| | | | | | | | and use it in cubemap instruction sequence for testing
* | r600: merge alu_instruction/alu_instruction2Andre Maasikas2009-12-082-297/+29
| |
* | r600: add ABS support for source regs to assemblerAndre Maasikas2009-12-082-25/+9
| | | | | | | | use it in tex cube instruction sequence
* | r600: glsl - allow specifying texture sampler via uniformsAndre Maasikas2009-12-084-1/+11
| | | | | | | | looks kinda hackish, should rethink later
* | r600: implement FRAG_ATTRIB_FACE, glsl/twoside worksAndre Maasikas2009-12-081-1/+33
| |
* | r600: quick hack to get KIL_NV working - does condition TR only for nowAndre Maasikas2009-12-081-7/+17
| |
* | r600: wip glsl - refactor conditional instructions a bitAndre Maasikas2009-12-082-310/+70
| | | | | | | | | | remember the dst register which is used for cond updates when it's time to use the cond codes issue a separate PRED instruction
* | r600: execute SET funtions on all channelsAndre Maasikas2009-12-081-1/+1
| | | | | | | | | | seems assemble_LOGIC was meant for non-condition-code instructions so execute in for all components as previously
* | Merge branch 'mesa_7_7_branch'Andre Maasikas2009-12-0810-61/+72
|\ \ | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/r600/r700_assembler.c src/mesa/main/version.h
| * \ Merge branch 'mesa_7_6_branch' into mesa_7_7_branchAndre Maasikas2009-12-082-18/+10
| |\ \
| | * | r600: add support for TXB instructionAndre Maasikas2009-12-081-17/+9
| | | | | | | | | | | | | | | | | | | | makes testing other things easier - does not hang the card TODO: enable TEX dependency tracking in vertex programs
| | * | r600: reorder state for render_target and blendAndre Maasikas2009-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | First time around render targets are not enabled yet (done in r700SendRenderTargetState) so blend state is not emitted for any targets. Affects first glClear in some mesa tests. As a quick fix reorder state emit so that target is set first
| * | | mesa: set version string to 7.7-rc1mesa_7_7_rc2Ian Romanick2009-12-071-1/+1
| | | | | | | | | | | | | | | | Also modify the Makefile to use the correct version for the tarballs.
| * | | Merge branch 'mesa_7_6_branch' into mesa_7_7_branchIan Romanick2009-12-074-24/+29
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: progs/demos/projtex.c progs/xdemos/glxinfo.c src/mesa/main/version.h To fix the confilicts in projtex.c and glxinfo.c I just took the code from mesa_7_6_branch. The conflicts seem to have occured from cherry-picks from mesa_7_7_branch to mesa_7_6_branch followed by commmits just to mesa_7_6_branch.
| | * | mesa: set version string to 7.6.1-rc3mesa_7_6_1_rc3Ian Romanick2009-12-071-1/+1
| | | |
| | * | dri: Fix potential null pointer dereference in driBindContext.Vinson Lee2009-12-061-1/+2
| | | | | | | | | | | | | | | | (cherry picked from commit 919898e92fa23ff71a59d86a46ff0886a6f34e4d)
| | * | dri: Fix potential null pointer deference in dri_put_drawable.Vinson Lee2009-12-061-4/+4
| | | | | | | | | | | | | | | | (cherry picked from commit 364070b1f2b08d43fb205ec198894a35bec6b2f3)
| | * | mesa: Fix array out-of-bounds access by _mesa_TexGenf.Vinson Lee2009-12-051-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | _mesa_TexGenf calls _mesa_TexGenfv, which uses the params argument as an array. (cherry picked from commit ca5a7aadb4361e7d053aea8687372cd44cbd8795)
| | * | mesa: Fix array out-of-bounds access by _mesa_TexGeni.Vinson Lee2009-12-051-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | _mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument as an array. (cherry picked from commit d55fb7c835b56951f05a058083e7eda264ba192e)
| | * | mesa: Fix array out-of-bounds access by _mesa_TexParameterf.Vinson Lee2009-12-051-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | _mesa_TexParameterf calls set_tex_parameterf, which uses the params argument as an array. (cherry picked from commit 270d36da146b899d39e08f830fe34b63833a3731)
| | * | mesa: Fix array out-of-bounds access by _mesa_TexParameterf.Vinson Lee2009-12-051-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | _mesa_TexParameterf calls set_tex_parameteri, which uses the params argument as an array. (cherry picked from commit a201dfb6bf28b89d6f511c2ec9ae0d81ef18511d)
| | * | mesa: Fix array out-of-bounds access in _mesa_TexEnvf.Vinson Lee2009-12-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | _mesa_TexEnvf calls _mesa_TexEnvfv, which uses the param argument as an array. (cherry picked from commit a11d60d14caf8efc07f70af63b57b33273f8cf9b)
| | * | radeon: fix polygon stippleAlex Deucher2009-12-044-24/+29
| | | | | | | | | | | | | | | | | | | | | | | | fixes fdo bug 25354 Signed-off-by: Alex Deucher <[email protected]>
| * | | Revert "intel: Make RGB renderbuffers use XRGB8888 like we do for RGB system ↵Ian Romanick2009-12-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | buffers." This reverts commit 4598942b1b88a2a7d5af7febae7e79eedf00e385. XRGB8888 doesn't work as intended. Revert this for now, and we'll revisit it for 7.8 or something.
| * | | radeon: fix cases when only first image where put directly into miptree.Maciej Cencora2009-12-071-3/+3
| | | | | | | | | | | | | | | | Make sure that minimal width, height and depth of texture image is 1.
| * | | radeon: fix image migration for small compressed texturesMaciej Cencora2009-12-071-14/+9
| | | | | | | | | | | | | | | | memcpy would give incorrect results if src rowstride != dst rowstride
| * | | radeon: workaround an FBO issueMaciej Cencora2009-12-032-0/+9
| | | | | | | | | | | | | | | | Fixes #21501
| * | | radeon: properly check if image should be placed in the miptreeMaciej Cencora2009-12-031-1/+4
| | | | | | | | | | | | | | | | Fixes #25355
* | | | st/mesa: remove debug codeBrian Paul2009-12-071-1/+1
| | | |
* | | | st/mesa: negate DDY to match GL semanticsBrian Paul2009-12-071-1/+20
| | | | | | | | | | | | | | | | | | | | This fixes the regression from commit 884007546c98b1779bf266ec5111b1e7e2b68b2e Fixes bug 25456 (piglit derivs regression).
* | | | st/mesa: fix up commentBrian Paul2009-12-071-2/+5
| | | |
* | | | radeon/r200/r600: fix drivers for changes in ↵Alex Deucher2009-12-053-38/+5
| | | | | | | | | | | | | | | | 433f0a82f5a4696e6b0c4061f645485ec8079bb4
* | | | st/mesa: Prefer alpha-less formats for RGB textures.Michel Dänzer2009-12-051-4/+32
| | | | | | | | | | | | | | | | | | | | This can e.g. increase the chance of being able to accelerate glCopyTex(Sub)Image from an alpha-less renderbuffer.
* | | | radeon: Only get DRI2 front buffer information for glXBindTexImageEXT.Michel Dänzer2009-12-054-43/+38
| | | |
* | | | Merge branch 'gallium-noblocks'Roland Scheidegger2009-12-046-38/+32
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_exa.c