summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-09-22glx: Invalidate buffers after binding a drawableKristian Høgsberg
If the server doesn't send invalidate events, we may miss a resize before the rendering starts. Invalidate the buffers now so the driver will recheck before rendering starts. https://bugs.freedesktop.org/show_bug.cgi?id=29984 https://bugs.freedesktop.org/show_bug.cgi?id=30155
2010-09-22i965: Fix the vector/expression splitting for the write_mask change.Eric Anholt
+113 piglits.
2010-09-22tgsi: Fix missing test before checkJakob Bornecrantz
As introduced with commit d21301675c249602e19310d5b62fad424f2f2ac2 NOTE: This is a candidate for the 7.9 branch.
2010-09-22ir_to_mesa: Only compare vector_elements present for any_nequal/all_equalEric Anholt
Fixes: glsl-mat-from-int-ctor-03
2010-09-22glsl: Fix copy'n'wasted ir_noop_swizzle conditions.Eric Anholt
It considered .xyyy a noop for vec4 instead of .xyzw, and similar for vec3.
2010-09-22glsl: Rework assignments with write_masks to have LHS chan count match RHS.Eric Anholt
It turns out that most people new to this IR are surprised when an assignment to (say) 3 components on the LHS takes 4 components on the RHS. It also makes for quite strange IR output: (assign (constant bool (1)) (x) (var_ref color) (swiz x (var_ref v) )) (assign (constant bool (1)) (y) (var_ref color) (swiz yy (var_ref v) )) (assign (constant bool (1)) (z) (var_ref color) (swiz zzz (var_ref v) )) But even worse, even we get it wrong, as shown by this line of our current step(float, vec4): (assign (constant bool (1)) (w) (var_ref t) (expression float b2f (expression bool >= (swiz w (var_ref x))(var_ref edge)))) where we try to assign a float to the writemasked-out x channel and don't supply anything for the actual w channel we're writing. Drivers right now just get lucky since ir_to_mesa spams the float value across all the source channels of a vec4. Instead, the RHS will now have a number of components equal to the number of components actually being written. Hopefully this confuses everyone less, and it also makes codegen for a scalar target simpler. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2010-09-22d3d1x: add Wine dlls (tri, tex working, but no other testing)Luca Barbieri
2010-09-22d3d1x: define GUIDs in the normal wayLuca Barbieri
2010-09-22d3d1x: fix API nameLuca Barbieri
2010-09-22d3d1x: redesign the HWND resolver interfaceLuca Barbieri
This one should be powerful enough to hook up Wine.
2010-09-22d3d1x: fix GUID declarationsLuca Barbieri
2010-09-22d3d1x: destroy native_display on adapter destructionLuca Barbieri
2010-09-22dri2: Make createImageFromName() take a __DRIscreen instead of __DRIcontextKristian Høgsberg
We can't expect to have a context when this is called, and we don't need one so just require a __DRIscreen instead. Reported by Yu Dai <yu.dai@intel.com>
2010-09-22r600g: fix multiple occlusion query on same idJerome Glisse
When calling query begin using same query id we need to discard previous query results. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-22r600g: disable shader rebuild optimization & account cb flush packetJerome Glisse
Shader rebuild should be more clever, we should store along each shader all the value that change shader program rather than using flags in context (ie change sequence like : change vs buffer, draw, change vs buffer, switch shader will trigger useless shader rebuild). Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-22llvmpipe: fix sprite texcoord setup for non-projective texturingBrian Paul
Normally the Mesa state tracker uses TXP instructions for texturing. But if a fragment shader uses texture2D() that's a TEX instruction. In that case we were incorrectly computing the texcoord coefficients in the point sprite setup code. Some new comments in the code explain things.
2010-09-22configs: remove egl-swrast target from linux-dri configBrian Paul
2010-09-22intel: Fix GL_ARB_shading_language_120 commitKristian Høgsberg
Fix commit e7087175f8a04f777403366fb34b58edd00f4d60. Move the reference to GL_VERSION_2_1_functions to intel_extensions.c where it's available, don't try to enable a non-existing extension and advertise 1.20 for all intel chipsets, not just GEN4 and up.
2010-09-22r600g: flush color buffer after draw commandJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-22llvmpipe: Make rgb/alpha bland func/factors match, when there is no alpha.José Fonseca
Makes AoS blending easier, and state more canonical.
2010-09-22llvmpipe: Special case complementary and identify blend factors in SoA.José Fonseca
One multiplication instead of two. Also fix floating point random number generation and verification. TODO: Do the same for AoS blending.
2010-09-22gallivm: Add unorm support to lp_build_lerp()José Fonseca
Unfortunately this can cause segfault with LLVM 2.6, if x is a constant.
2010-09-22util: Flush stdout on util_format.José Fonseca
2010-09-22d3d1x: fix segfault when hashingLuca Barbieri
2010-09-22d3d1x: fix warningLuca Barbieri
2010-09-22d3d1x: fix cf analysisLuca Barbieri
2010-09-22d3d1x: link with CXXFLAGSLuca Barbieri
Otherwise, -m32 doesn't make it there.
2010-09-22d3d1x: add missing memory barrierLuca Barbieri
2010-09-22d3d1x: don't build progs automaticallyLuca Barbieri
progs requires winsys, which hasn't yet been built by the time we go into state_trackers. It may be a good idea to also move it into tests. After a normal build, run make in src/gallium/state_trackers/d3d1x/progs to build them.
2010-09-22winsys: automatically build sw winsys needed by EGL and d3d1xLuca Barbieri
A cleaner solution would be preferable, but this does no harm and works.
2010-09-22glx: decouple dri2.c and GLX, fixing Gallium EGL and d3d1x buildLuca Barbieri
The Gallium EGL state tracker reuses dri2.c but not the GLX code. Currently there is a bit of code in dri2.c that is incorrectly tied to GLX: instead, make it call an helper that both GLX and Gallium EGL implement, like dri2InvalidateBuffers. This avoids a link error complaining that dri2GetGlxDrawableFromXDrawableId is undefined. Note that we might want to move the whole event translation elsewhere, and probably stop using non-XCB DRI2 altogether, but this seems to be the minimal fix.
2010-09-22nvfx: remove gl_PointCoord hackLuca Barbieri
Now Gallium has the proper fix, thanks to Brian Paul.
2010-09-22d3d1x: attempt to fix/workaround bug #30322Luca Barbieri
This may just be hiding some other bug though, since the types are supposed to be the same (and it compiles for me). Anyway, this interface will likely need to changed, since it seems Wine needs a more powerful one capable of expressing window subregions and called at every Present.
2010-09-22r600g: disable dirty handling on texture from depth code.Dave Airlie
nothing was every dirtying the object again, the mesa-demos reflect test was just stalling. this fixes glean readPixSanity.
2010-09-22r600g: make stencil readback workDave Airlie
need to write two components to get stencil components as well
2010-09-22r600g: cleanup some of the DB blit codeDave Airlie
add cb/db flush states to the blit code. add support for the rv6xx that need special treatment. according to R6xx_7xx_3D.pdf set r700 CB_SHADER_CONTROL reg in blit code docs say dual export should be disabled for DB->CB
2010-09-22r600g: fix typo in struct member nameDave Airlie
2010-09-21r600g: occlusion query for new designJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-21mesa: don't advertise bogus GL_ARB_shading_language_120 extensionBrian Paul
Instead of using the invalid GL_ARB_shading_language_120 extension to determine the GLSL version, use a new ctx->Const.GLSLVersion field. Updated the intel and r600 drivers, but untested. See fd.o bug 29910 NOTE: This is a candidate for the 7.9 branch (but let's wait and see if there's any regressions).
2010-09-21glut: Define eventParser for non-Windows only.Vinson Lee
Fixes this GCC warning on MinGW build. glut_input.c:295: warning: 'eventParser' defined but not used
2010-09-21glut: Define markWindowHidden for non-Windows only.Vinson Lee
Fixes this GCC warning on MinGW build. glut_event.c:255: warning: 'markWindowHidden' defined but not used
2010-09-21softpipe: add missing calls to set draw vertex samplers/viewsBrian Paul
Part of the fix for running softpipe w/ LLVM-enabled draw module.
2010-09-21gallivm: fix lp_build_sample_compare()Brian Paul
The old code didn't really make sense. We only need to compare the X channel of the texture (depth) against the texcoord. For (bi)linear sampling we should move the calls to this function and compute the final result as (s1+s2+s3+s4) * 0.25. Someday. This fixes the glean glsl1 shadow2D() tests. See fd.o bug 29307.
2010-09-21d3d1x: ignore errors while building docsLuca Barbieri
Some versions of dot apparently lack pdf output.
2010-09-21r600g: fix multi buffer renderingJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-21glsl2: fix typo in error msgBrian Paul
2010-09-21d3d1x: fix GCC 4.1/4.2 buildLuca Barbieri
2010-09-21d3d1x: add template parameters to base class ctor calls for GCC 4.4Luca Barbieri
GCC 4.5 is fine without them, but GCC 4.4 requires them. Should fully fix the build on GCC 4.4
2010-09-21d3d1x: fix build with compilers other than GCC 4.5Luca Barbieri
There was some libstdc++-specific code that would only build with GCC 4.5 Now it should be much more compatible, at the price of reimplementing the generic hash function.
2010-09-21gallium/docs: The RET opcode may appear anywhere in a subroutine.Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>