summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* gallium: Use unified pipe_context::draw_vbo.Chia-I Wu2010-07-292-3/+2
| | | | Update u_draw_quad, st/vega, and st/mesa to use pipe_context::draw_vbo.
* gallium: Implement draw_vbo and set_index_buffer for all drivers.Chia-I Wu2010-07-2948-202/+1004
| | | | | | | | | | | | | | | Some drivers define a generic function that is called by all drawing functions. To implement draw_vbo for such drivers, either draw_vbo calls the generic function or the prototype of the generic function is changed to match draw_vbo. Other drivers have no such generic function. draw_vbo is implemented by calling either draw_arrays and draw_elements. For most drivers, set_index_buffer does not mark the state dirty for tracking. Instead, the index buffer state is emitted whenever draw_vbo is called, just like the case with draw_elements. It surely can be improved.
* gallium: Add pipe_context::draw_vbo and pipe_context::set_index_buffer.Chia-I Wu2010-07-292-0/+41
| | | | | | This commit adds a new unified draw_vbo method to pipe_context. Unlike other draw methods, draw_vbo treats the index buffer as a state which is set with set_index_buffer.
* Untangle gallium/egl/glx source sharing mess and make it compile againKristian Høgsberg2010-07-283-114/+58
|
* r600g: state context ptr in sampler_view & add I8/L8 buffer formatJerome Glisse2010-07-282-0/+3
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: switch btw flat/linear interpolationJerome Glisse2010-07-283-3/+7
| | | | | | | | | I am not sure how to properly handle flat shading regarding non color parameter to fragment shader. It seems we should still interpolate non color using linear interpolation and flat shade only apply to color. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: split pipe state creating/binding from hw state creationJerome Glisse2010-07-289-612/+1077
| | | | | | | | | Split hw vs pipe states creation handling as hw states group doesn't match pipe state group exactly. Right now be dumb about that and rebuild all hw states on each draw call. More optimization on that side coming. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: cleanup resource buffer/texture messJerome Glisse2010-07-2810-259/+217
| | | | | | Use a common function, fix the mess it was before. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: add lrp instruction supportJerome Glisse2010-07-281-3/+80
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: actualy fix the literal emissionJerome Glisse2010-07-281-3/+3
| | | | | | | Previous patch added literal emission to wrong place, we want to emit literal before emitting a new alu group. Signed-off-by: Jerome Glisse <[email protected]>
* gallium/docs: Fix VMware spelling.Vinson Lee2010-07-281-2/+2
|
* draw: Fix VMware spelling.Vinson Lee2010-07-283-3/+3
|
* r600g: fix up segfault with variation between views and count.Dave Airlie2010-07-281-4/+18
| | | | | For some reason gallium hands us something with lots of empty views, and we are expected to deal with it, just do what r300g does for this bit.
* gallium/docs: Fix VMware spelling.Corbin Simpson2010-07-271-2/+2
|
* r600g: use gallium util for float->ui conversionDave Airlie2010-07-282-19/+6
|
* scons: Fix sunos5 build.Vinson Lee2010-07-272-0/+6
|
* r600g: texture supportJerome Glisse2010-07-277-9/+610
| | | | | | | | | | | | | Add texture mapping support, redbook/texbind works if you comment out glClear and second checkboard. Need to fix : - texture overwritting - lod & mip/map handling - unormalized coordinate handling - texture view with first leve > 0 - and many other things Signed-off-by: Jerome Glisse <[email protected]>
* llvmpipe: pass face+slice to llvmpipe_unswizzle_cbuf_tile()Brian Paul2010-07-271-2/+3
| | | | | | | | Cube map faces and 3D texture slices are treated the same in llvmpipe textures. Need to pass the sum of these fields to llvmpipe_unswizzle_cbuf_tile() as we do elsewhere. Fixes piglit fbo-3d test (fd.o bug 29135).
* r600g: Move declaration before code.Vinson Lee2010-07-271-2/+5
| | | | Fixes SCons build.
* swrastg: Add SWRAST_NO_PRESENT option to not send updates to X serverJakob Bornecrantz2010-07-271-1/+9
| | | | | There seem to be a problem with this path and freeglut where the window wont open if SWRAST_NO_PRESENT is set to true.
* r600g: always emit literal after emiting an alu instructionJerome Glisse2010-07-271-29/+32
| | | | | | Make sure we always fill in the literal after alu instruction. Signed-off-by: Jerome Glisse <[email protected]>
* llvmpipe: Use lp_build_select_bitwise() where appropriate.José Fonseca2010-07-271-11/+11
| | | | Fixes fdo 29269.
* gallivm: Add lp_build_select_bitwise() alternative to lp_build_select_bitwiseJosé Fonseca2010-07-272-22/+50
| | | | | | | | | | When (mask & a) | (~mask & b) is meant instead of mask ? a : b
* cell: comment-out unused fields, functionsBrian Paul2010-07-261-2/+4
|
* cell: make functions staticBrian Paul2010-07-261-3/+3
|
* cell: fix segfault when freeing samplersBrian Paul2010-07-261-1/+1
|
* cell: comment-out unneeded padding fieldBrian Paul2010-07-261-1/+1
|
* cell: added const qualifierBrian Paul2010-07-261-1/+1
|
* util: fix unused function warning on non-x86Brian Paul2010-07-261-0/+3
|
* st/egl: Fix debug linenobled2010-07-261-1/+1
| | | | Acked-by: Jakob Bornecrantz <[email protected]>
* util: fix CPU detection on OS Xnobled2010-07-261-6/+6
| | | | | | s/PIPE_OS_DARWIN/PIPE_OS_APPLE, since there is no PIPE_OS_DARWIN. Acked-by: Vinson Lee <[email protected]>
* st/xorg: fix use-after-freenobled2010-07-261-1/+1
| | | | Acked-by: Jakob Bornecrantz <[email protected]>
* i965g: Enable llvm in dri driver if builtJakob Bornecrantz2010-07-261-3/+8
|
* i915g: Fix llvm buildnobled2010-07-261-1/+1
| | | | Acked-by: Jakob Bornecrantz <[email protected]>
* r600g: implememt the LIT instructionStephan Schmid2010-07-261-1/+119
|
* util: fix another mutex leak in mempoolMarek Olšák2010-07-261-2/+1
| | | | By fixing one, I introduced another. Crap.
* util: fix mutex leaks in mempoolMarek Olšák2010-07-261-1/+2
|
* r300g: fix macro substitution problemDave Airlie2010-07-261-2/+2
| | | | | | isn't a problem yet, but have issues in hiz branch. Signed-off-by: Dave Airlie <[email protected]>
* r300g: implement D24X8 texture sampling for r3xx-r4xxMarek Olšák2010-07-255-22/+34
| | | | | | | | | Because the hw can't sample it, I reinterpret the format as G16R16 and sample the G component. This gives 16 bits of precision, which should be enough for depth texturing (surprisingly, the sampled values are exactly the same as in D16 textures). This also enables EXT_packed_depth_stencil on those old chipsets, finally.
* r300g: make sure a texture is large enough for the CBZB clearMarek Olšák2010-07-251-52/+49
| | | | | | | The number of macrotiles in the Y direction must be even, otherwise memory corruption may happen (e.g. broken fonts). Basically, if we get a buffer in resource_from_handle, we can determine from the buffer size whether it's safe to use the CBZB clear or not.
* r300g: do not use TXPITCH_EN if the width is POT and the height is NPOTMarek Olšák2010-07-256-11/+15
|
* r300g: do not use TXPITCH_EN for power-of-two textures from the DDXMarek Olšák2010-07-251-6/+14
| | | | We were using TXPITCH_EN for textures from the DDX since ever, for nothing.
* r300g: cleanup texture creation codeMarek Olšák2010-07-2513-543/+733
| | | | | | | | | | | | This decouples initializing a texture layout/miptree description from an actual texture creation, it also partially unifies texture_create and texture_from_handle. r300_texture inherits r300_texture_desc, which inherits u_resource. The CBZB clear criteria are moved to r300_texture_desc::cbzb_allowed[level]. And other minor cleanups.
* r300g: reject resources from handles which are not large enoughMarek Olšák2010-07-255-11/+34
| | | | | | | | The driver gets a buffer and its size in resource_from_handle. It computes the required minimum buffer size from given texture properties, and compares the two sizes. This is to early detect DDX bugs.
* r300g: cleanup texture debug loggingMarek Olšák2010-07-253-18/+25
|
* r300g: do not align texture height to 2^n for 1D and 2D non-mipmapped texturesMarek Olšák2010-07-251-1/+5
| | | | | I don't remember why the alignment was there, but it seems to be no longer needed. I guess it was a dirty fix for some other bug.
* nvfx: Move declaration before code.Vinson Lee2010-07-241-2/+3
|
* util: Add PIPE_OS_CYGWIN to u_network.Vinson Lee2010-07-231-1/+1
|
* r600g: first pass at texture supportJerome Glisse2010-07-236-14/+152
| | | | | | | This add texture support to the assembler, generated code is wrong (tested against working dump). Signed-off-by: Jerome Glisse <[email protected]>
* r600g: Fix SCons build.Vinson Lee2010-07-231-5/+2
|