summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* r600g: use blitter to do db->cb flushing.Dave Airlie2010-09-238-959/+145
| | | | | | | | | | | | use the blitter + custom stage to avoid doing a whole lot of state setup by hand. This makes life a lot easier for doing this on evergreen it also keeps all the state setup in one place. We setup a custom context state at the start with a flag to denote its for the flush, when it gets generated we generate the correct state for the flush and no longer have to do it all by hand. this should also make adding texture *to* depth easier.
* u_blitter: add a custom blitter call passing a dsa csoDave Airlie2010-09-232-14/+37
| | | | | reimplement the flush stage added for r300 to allow a custom DSA stage to be used in the pipeline, this allows for r600 hw DB->CB flushes.
* d3d1x: properly reference count the backendLuca Barbieri2010-09-231-0/+4
|
* dri: Pass the __DRIscreen and the __DRIscreen private back to image lookupKristian Høgsberg2010-09-2210-22/+20
| | | | | We will typically have a current context when we need to lookup the image, but the lookup implementation don't need it so drop it.
* rbug: fix rbug when contexts are being destroyedZack Rusin2010-09-221-0/+1
|
* r600g: fix typo in evergreen register listDave Airlie2010-09-231-1/+1
| | | | pointed out by glisse on irc.
* r600g: fix depth readback on rv610 and other quirky variants.Dave Airlie2010-09-232-12/+32
| | | | at least zreaddraw works for me here now on my rv610
* r600g: use floats instead of hex for blit vboDave Airlie2010-09-231-10/+9
| | | | once I go past 0x3f80000, I can't translate hex to float in-brain anymore.
* i965: Warning fix for vector result any_nequal/all_equal change.Eric Anholt2010-09-221-1/+3
|
* i965: Update expression splitting for the vector-result change to compares.Eric Anholt2010-09-221-8/+9
| | | | | | Fixes: glsl1-precision exp2 glsl1-precision log2
* i965: When splitting vector variable assignment, ignore unset channels.Eric Anholt2010-09-221-2/+5
| | | | | | | | The new checks for sanity in ir_assignment creation got angry about this write_mask == 0. Fixes: glsl-fs-dot-vec2. glsl-fs-atan-2 glsl-fs-dot-vec2
* glx: Invalidate buffers after binding a drawableKristian Høgsberg2010-09-221-4/+15
| | | | | | | | | 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
* i965: Fix the vector/expression splitting for the write_mask change.Eric Anholt2010-09-222-7/+1
| | | | +113 piglits.
* tgsi: Fix missing test before checkJakob Bornecrantz2010-09-221-1/+2
| | | | | | As introduced with commit d21301675c249602e19310d5b62fad424f2f2ac2 NOTE: This is a candidate for the 7.9 branch.
* ir_to_mesa: Only compare vector_elements present for any_nequal/all_equalEric Anholt2010-09-221-2/+18
| | | | Fixes: glsl-mat-from-int-ctor-03
* glsl: Fix copy'n'wasted ir_noop_swizzle conditions.Eric Anholt2010-09-221-2/+2
| | | | It considered .xyyy a noop for vec4 instead of .xyzw, and similar for vec3.
* glsl: Rework assignments with write_masks to have LHS chan count match RHS.Eric Anholt2010-09-2211-112/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* d3d1x: add Wine dlls (tri, tex working, but no other testing)Luca Barbieri2010-09-2216-0/+386
|
* d3d1x: define GUIDs in the normal wayLuca Barbieri2010-09-223-16/+0
|
* d3d1x: fix API nameLuca Barbieri2010-09-221-1/+1
|
* d3d1x: redesign the HWND resolver interfaceLuca Barbieri2010-09-225-105/+250
| | | | This one should be powerful enough to hook up Wine.
* d3d1x: fix GUID declarationsLuca Barbieri2010-09-221-4/+5
|
* d3d1x: destroy native_display on adapter destructionLuca Barbieri2010-09-221-0/+1
|
* dri2: Make createImageFromName() take a __DRIscreen instead of __DRIcontextKristian Høgsberg2010-09-223-9/+7
| | | | | | | 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 <[email protected]>
* r600g: fix multiple occlusion query on same idJerome Glisse2010-09-222-3/+11
| | | | | | | When calling query begin using same query id we need to discard previous query results. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: disable shader rebuild optimization & account cb flush packetJerome Glisse2010-09-222-22/+13
| | | | | | | | | 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 <[email protected]>
* llvmpipe: fix sprite texcoord setup for non-projective texturingBrian Paul2010-09-221-27/+58
| | | | | | | | 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.
* intel: Fix GL_ARB_shading_language_120 commitKristian Høgsberg2010-09-222-11/+3
| | | | | | | 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.
* r600g: flush color buffer after draw commandJerome Glisse2010-09-221-1/+36
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* llvmpipe: Make rgb/alpha bland func/factors match, when there is no alpha.José Fonseca2010-09-221-14/+8
| | | | Makes AoS blending easier, and state more canonical.
* llvmpipe: Special case complementary and identify blend factors in SoA.José Fonseca2010-09-224-44/+79
| | | | | | | | One multiplication instead of two. Also fix floating point random number generation and verification. TODO: Do the same for AoS blending.
* gallivm: Add unorm support to lp_build_lerp()José Fonseca2010-09-221-9/+75
| | | | Unfortunately this can cause segfault with LLVM 2.6, if x is a constant.
* util: Flush stdout on util_format.José Fonseca2010-09-221-0/+8
|
* d3d1x: fix segfault when hashingLuca Barbieri2010-09-221-1/+1
|
* d3d1x: fix warningLuca Barbieri2010-09-221-1/+1
|
* d3d1x: fix cf analysisLuca Barbieri2010-09-221-1/+1
|
* d3d1x: link with CXXFLAGSLuca Barbieri2010-09-221-1/+1
| | | | Otherwise, -m32 doesn't make it there.
* d3d1x: add missing memory barrierLuca Barbieri2010-09-221-2/+6
|
* d3d1x: don't build progs automaticallyLuca Barbieri2010-09-221-1/+1
| | | | | | | | | | 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.
* winsys: automatically build sw winsys needed by EGL and d3d1xLuca Barbieri2010-09-221-0/+10
| | | | A cleaner solution would be preferable, but this does no harm and works.
* glx: decouple dri2.c and GLX, fixing Gallium EGL and d3d1x buildLuca Barbieri2010-09-224-6/+25
| | | | | | | | | | | | | | | 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.
* nvfx: remove gl_PointCoord hackLuca Barbieri2010-09-221-7/+6
| | | | Now Gallium has the proper fix, thanks to Brian Paul.
* d3d1x: attempt to fix/workaround bug #30322Luca Barbieri2010-09-221-1/+1
| | | | | | | | | 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.
* r600g: disable dirty handling on texture from depth code.Dave Airlie2010-09-221-8/+1
| | | | | | | nothing was every dirtying the object again, the mesa-demos reflect test was just stalling. this fixes glean readPixSanity.
* r600g: make stencil readback workDave Airlie2010-09-221-2/+1
| | | | need to write two components to get stencil components as well
* r600g: cleanup some of the DB blit codeDave Airlie2010-09-222-4/+65
| | | | | | | | | 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
* r600g: fix typo in struct member nameDave Airlie2010-09-225-7/+7
|
* r600g: occlusion query for new designJerome Glisse2010-09-214-6/+237
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* mesa: don't advertise bogus GL_ARB_shading_language_120 extensionBrian Paul2010-09-219-21/+60
| | | | | | | | | | | 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).
* glut: Define eventParser for non-Windows only.Vinson Lee2010-09-211-1/+1
| | | | | Fixes this GCC warning on MinGW build. glut_input.c:295: warning: 'eventParser' defined but not used