summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
AgeCommit message (Collapse)Author
2010-08-11llvmpipe: Use single precision divide for one over area computation.José Fonseca
2010-08-11auxiliary: fix u_split_prim naming conventionLuca Barbieri
Current practice is to start identifiers with "util_" instead of "u_".
2010-08-11auxiliary: move Ben Skeggs' primitive splitter to common codeLuca Barbieri
This is a simple framework that handles splitting primitives in an abstract way. The user has to specify the primitive start, start index and count. Then, it can ask the primitive splitter to "draw" a chunk of the primitive, staying under a given vertex/index budget. The primitive splitter will then call user-supplied functions to emit a range of vertices/indices, as well as switch the edgeflag on or off. This is particularly useful for hardware that either has limits on the vertex count field, or where vertices are pushed on a FIFO or temporary buffer of limited size. Note that unlike other splitters, it does not manipulate data in any way, and merely asks a callback to do so, in vertex intervals.
2010-08-11r300g: initialize VAP_VTX_STATE_CNTLMarek Olšák
This got lost during the rasterizer rewrite.
2010-08-11r300g: implement gl_FrontFacingMarek Olšák
2010-08-10r300g: Remove unnecessary header.Vinson Lee
2010-08-10r300/compiler: Implement hardware assisted loops for vertex shaders.Tom Stellard
Single loops work, but nested loops do not.
2010-08-10r600g: avoid reemiting literal, avoid scheduling empty csJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-10nv50: begin implementing loopsChristoph Bumiller
2010-08-10nv50: fix reg countChristoph Bumiller
2010-08-10llvmpipe: Always use floating-point operators for floating-point typesnobled
See: http://bugs.freedesktop.org/29404 http://bugs.freedesktop.org/29407 Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-08-09util: Move _mm_shuffle_epi8() to u_sse.h.José Fonseca
It's bound to be useful elsewhere.
2010-08-09r600g: fix r600 context structure, avoid segfault when no scissorJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-09r300g: do not print shader compiler errors by defaultMarek Olšák
2010-08-09r600g: fix some warningsMarek Olšák
2010-08-09r600g: fill out some missing caps and sort themMarek Olšák
The shader caps need additional corrections. (based on a patch from netkas at Phoronix)
2010-08-09r300g: fix hiz/zmask offset emissions.Dave Airlie
ofs is in dwords, so need to shift it for registers. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-09nouveau: fix maps with PIPE_TRANSFER_UNSYNCHRONIZED | PIPE_TRANSFER_DONTBLOCKLuca Barbieri
In this case, we were incorrectly prioritizing PIPE_TRANSFER_DONTBLOCK over PIPE_TRANSFER_UNSYNCHRONIZED. This can lead to failure in the Mesa VBO draw paths that end up specifying both, but don't expect map to fail (in particular, the problem manifested as a leak of buffer objects in teapot with other changes).
2010-08-08r300g: remove a flushMarek Olšák
Ooops, it wasn't supposed to be there.
2010-08-08r300g: flush zmasks of zbuffers we are going to use as samplersMarek Olšák
It sometimes works, sometimes not. I guess we have the zmask offsets wrong.
2010-08-08r300g: do not allocate a zmask block for 3D textures and cubemapsMarek Olšák
2010-08-08r300g: take hiz/zmask offsets into a/c when clearing.Dave Airlie
Need to add a test for multi-hiz/zmask db in a single context. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-07r300g: fix cbzb clears when hyperz is offMarek Olšák
2010-08-06nouveau: fix potential NULL-ptr dereference in nouveau_stateobj.hMaarten Maathuis
- This can only be triggered when DEBUG_NOUVEAU_STATEOBJ is active. - Also remove a redundant pointer assignment. Reported-by: Roy Spliet <r.spliet@student.tudelft.nl> Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
2010-08-06r600g: add PA_CL_CLIP_CNTL definitionJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06r600g: fix rendering, only enable target we write tooJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06r600g: really fix multi target supportJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06gallium: remove stray semicolonsBrian Paul
2010-08-06r600g: finish multi target rendering supportJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06r600g: fix color format, indentation, definesJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06Revert "r600g: don't use dynamic state allocation for states"Jerome Glisse
This reverts commit 9c949d4a4dd43b7889e13bdf683bcf211f049ced. Conflicts: src/gallium/drivers/r600/r600_context.h src/gallium/drivers/r600/r600_draw.c src/gallium/drivers/r600/r600_shader.c src/gallium/drivers/r600/r600_state.c
2010-08-05r300g: Remove unnecessary headers.Vinson Lee
2010-08-06r600g: start to fix up multiple targets.Dave Airlie
fixup exports from pixel shader for multi-cbs + depth buffer writing. Still crashes GPU running any of the multi-buffer or depth writing
2010-08-06r600g: add SRGB support.Dave Airlie
This enables GL2.1 and passes glean's texture_srgb test.
2010-08-06r600g: fixup z format translations.Dave Airlie
this enables GL_EXT_packed_depth_stencil. fbo-d24s8 passes
2010-08-06r600g: fix targetmask to work correctly.Dave Airlie
At least this seems to fix the glean maskedClear test.
2010-08-06r600g: improve supported format selection.Dave Airlie
This fixes fbo-readpixels piglit test, and adds support for swapping the formats. Not all formats are correct yet I don't think. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-06r600g: add bo wait after map.Dave Airlie
2010-08-06r300g: do not emit GB_Z_PEQ_CONFIG on non-r500 if DRM < 2.6.0Marek Olšák
2010-08-05llvmpipe: Only get no rast option onceJakob Bornecrantz
2010-08-06nvfx: fix nv30 vertex program scalar opcodesLuca Barbieri
Apparently they have always been broken, even before unification. Fixes a lot of stuff, starting from morph3d and lighting in teapot with textures disabled.
2010-08-06nvfx: shut up unknown cap 64 warningLuca Barbieri
2010-08-05r600g: don't use dynamic state allocation for statesJerome Glisse
Simplify state handly by avoiding state allocation. Next step is to allocate once for all context packet buffer and then avoid rebuilding pm4 packet each time (through use of combined crc) this would also avoid number of memcpy. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-05r300g: fix fb_state atom sizeMarek Olšák
2010-08-05r300g: always emit hyperz state atom.Dave Airlie
2010-08-05r300g: disable hiz on rv530 for now.Dave Airlie
On my rv530 at least HiZ is causing rendering issues in gears.
2010-08-05r300g: implement hyper-z support. (v4)Dave Airlie
This implements fast Z clear, Z compression, and HiZ support for r300->r500 GPUs. It also allows cbzb clears when fast Z clears are being used for the ZB. It requires a kernel with hyper-z support. Thanks to Marek Olšák <maraeo@gmail.com>, who started this off, and Alex Deucher at AMD for providing lots of hints. v2: squashed zmask ram size fix] squashed r300g/blitter: fix Z readback when compressed] v3: rebase around texture changes in master - .1 fix more bits v4: migrated to using u_mm in r300_texture to manage hiz/zmask rams consistently disabled HiZ when using OQ flush z-cache before turning hyper-z off update hyper-z state on dsa state change store depthclearvalue across cbzb clears and replace it afterwards. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-05nv50: build proper phi functions in the first placeChristoph Bumiller
2010-08-05nv50: fix constbuf validationChristoph Bumiller
We only uploaded up to the highest offset a program would use, and if the constant buffer isn't changed when a new program is used, the new program is missing the rest of them. Might want to introduce a "fill state" for user mem constbufs.
2010-08-05nv50: don't eliminate loads to dedicated valuesChristoph Bumiller