summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
AgeCommit message (Collapse)Author
2010-08-02r600g: add stencil op/func translationDave Airlie
2010-08-02r600g: initial alpha test stateDave Airlie
2010-08-02r600g: add initial blend state.Dave Airlie
migrates cb_cntl to be regenerated
2010-08-02r600g: set correct tex coord type for rect textures.Dave Airlie
2010-08-02r600g: make r600_db_format static.Dave Airlie
this isn't used anywhere else yet.
2010-08-01r300g: fix microtiling on RS6xxMarek Olšák
Getting tiling right has always been tricky. There are so many subtle details...
2010-07-31r600g: Remove unnecessary header.Vinson Lee
2010-07-31r600g: Remove unnecessary header.Vinson Lee
2010-07-30r600g: add KIL opcode supportJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-30llvmpipe: Silence unused value warning.Vinson Lee
2010-07-30llvmpipe: Fix implicit declaration of lp_func_delete_body warnings.Vinson Lee
2010-07-30llvmpipe: delete function bodies after generating machine codeZack Rusin
2010-07-30r600g: fix typo in tex instruction + shader semantic id fixJerome Glisse
It seems we never get semantic id from TGSI so fallback to use output number as id. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-29llvmpipe: fix on-debug build breakageBrian Paul
2010-07-29llvmpipe: added some jit debug codeBrian Paul
If we crash in the jitted function we can examine jit_line and jit_state in gdb to learn more about the shader.
2010-07-29gallium: implement bounds checking for constant buffersBrian Paul
Plumb the constant buffer sizes down into the tgsi interpreter where we can do bounds checking. Optional debug code warns upon out-of-bounds reading. Plus add a few other assertions in the TGSI interpreter.
2010-07-29llvmpipe: silence warnings in lp_test_sincos.cBrian Paul
2010-07-29r600g: mipmap early support + EX2/ABS instruction + cullingJerome Glisse
Add mipmap support (demos/src/redbook/mipmap is working) Add EX2/ABS shader instruction support. Add face culling support. Misc fixes. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-29r300g/swtcl: fix crash in ETQW and minor fixupsMarek Olšák
The Draw flush inside r300_flush was the culprit. Also, no need to flush Draw when changing a state since the flush is already inside swtcl_draw_vbo.
2010-07-29r300g/swtcl: fix crash after the draw_vbo mergeMarek Olšák
2010-07-29llvmpipe: also test the new lp_build_assert() functionBrian Paul
2010-07-29llvmpipe: don't call LLVMCreateJITCompiler() twiceBrian Paul
Fixes a failed assertion with LLVM 2.6: <unnamed>::JITResolver::JITResolver(llvm::JIT&): Assertion `TheJITResolver == 0&& "Multiple JIT resolvers?"' failed. Though, not everyone seems to experience this problem.
2010-07-29scons: Use the current python executable for code generation.José Fonseca
Less susceptible to be broken.
2010-07-29llvmpipe: Avoid corrupting the FPU stack with MMX instructions on 32bit OSes.José Fonseca
Unfortunately LLVM doesn't emit EMMS itself, and there is no easy/effective way to disable MMX. http://llvm.org/bugs/show_bug.cgi?id=3287
2010-07-29gallium: Avoid void pointer arithmetic.Chia-I Wu
This fixes fdo bug #29286.
2010-07-29gallium: Keep only pipe_context::draw_vbo.Chia-I Wu
That is, remove pipe_context::draw_arrays, pipe_context::draw_elements, pipe_context::draw_arrays_instanced, pipe_context::draw_elements_instanced, pipe_context::draw_range_elements.
2010-07-29gallium: Implement draw_vbo and set_index_buffer for all drivers.Chia-I Wu
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.
2010-07-28r600g: state context ptr in sampler_view & add I8/L8 buffer formatJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-28r600g: switch btw flat/linear interpolationJerome Glisse
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 <jglisse@redhat.com>
2010-07-28r600g: split pipe state creating/binding from hw state creationJerome Glisse
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 <jglisse@redhat.com>
2010-07-28r600g: cleanup resource buffer/texture messJerome Glisse
Use a common function, fix the mess it was before. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-28r600g: add lrp instruction supportJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-28r600g: actualy fix the literal emissionJerome Glisse
Previous patch added literal emission to wrong place, we want to emit literal before emitting a new alu group. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-28r600g: fix up segfault with variation between views and count.Dave Airlie
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.
2010-07-28r600g: use gallium util for float->ui conversionDave Airlie
2010-07-27r600g: texture supportJerome Glisse
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 <jglisse@redhat.com>
2010-07-27llvmpipe: pass face+slice to llvmpipe_unswizzle_cbuf_tile()Brian Paul
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).
2010-07-27r600g: Move declaration before code.Vinson Lee
Fixes SCons build.
2010-07-27r600g: always emit literal after emiting an alu instructionJerome Glisse
Make sure we always fill in the literal after alu instruction. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-27llvmpipe: Use lp_build_select_bitwise() where appropriate.José Fonseca
Fixes fdo 29269.
2010-07-26cell: comment-out unused fields, functionsBrian Paul
2010-07-26cell: make functions staticBrian Paul
2010-07-26cell: fix segfault when freeing samplersBrian Paul
2010-07-26cell: comment-out unneeded padding fieldBrian Paul
2010-07-26cell: added const qualifierBrian Paul
2010-07-26r600g: implememt the LIT instructionStephan Schmid
2010-07-26r300g: fix macro substitution problemDave Airlie
isn't a problem yet, but have issues in hiz branch. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-07-25r300g: implement D24X8 texture sampling for r3xx-r4xxMarek Olšák
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.
2010-07-25r300g: make sure a texture is large enough for the CBZB clearMarek Olšák
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.
2010-07-25r300g: do not use TXPITCH_EN if the width is POT and the height is NPOTMarek Olšák