summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga
AgeCommit message (Collapse)AuthorFilesLines
2010-08-30svga: Fix CMP translation for vertex shader targets.Michal Krol1-0/+19
SVGA3DOP_CMP is not supported for vertex shaders; use SLT + LRP instead.
2010-08-30svga: Re-emit bound rendertargets and texture samplers at the beginning of ↵José Fonseca4-8/+27
every command buffer. Only non null resources. To ensure that relocations are emitted for every resource currently referred.
2010-08-25draw: specialized cliptesting routinesKeith Whitwell1-1/+2
2010-08-25gallium: Use draw_set_index_buffer and others.Chia-I Wu1-11/+6
Update all drivers to use draw_set_index_buffer, draw_set_mapped_index_buffer, and draw_vbo. Remove draw_set_mapped_element_buffer and draw_set_mapped_element_buffer_range.
2010-08-25svga: Remove redundant svga_draw_range_elements.Chia-I Wu3-87/+45
That is, implement draw_vbo directly. As a result, svga_swtnl_draw_range_elements is also replaced by svga_swtnl_draw_vbo. This commit should not have any functional change.
2010-08-22svga: Do not shortcut NULL surface relocations with SVGA3D_INVALID_ID.José Fonseca2-6/+9
How to cope with NULL surface relocations should be entirely at winsys' discretion.
2010-08-20gallium: make all checks for PIPE_TEXTURE_2D check for PIPE_TEXTURE_RECT tooLuca Barbieri2-1/+3
Searched for them with: git grep -E '[!=]=.*PIPE_TEXTURE_2D|PIPE_TEXTURE_2D.*[!=]=|case.*PIPE_TEXTURE_2D' Behavior hasn't been changed.
2010-07-29gallium: Keep only pipe_context::draw_vbo.Chia-I Wu1-25/+0
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 Wu3-0/+44
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-06-28Merge branch 'gallium-drm-driver-drescriptor'Jakob Bornecrantz3-3/+43
Conflicts: src/gallium/state_trackers/egl/x11/native_dri2.c src/gallium/state_trackers/egl/x11/native_x11.c src/gallium/state_trackers/egl/x11/native_x11.h src/gallium/state_trackers/xorg/xorg_driver.c src/gallium/winsys/radeon/drm/radeon_drm.c
2010-06-08gallium: adjust the query interface to support custom typesZack Rusin1-2/+3
we need to change it to support composite types
2010-06-06svga: Move bootstrap code to targetsJakob Bornecrantz3-3/+43
2010-06-03svga: Remove unnecessary header.Vinson Lee1-1/+0
2010-06-03Merge branch 'gallium-newclear'Roland Scheidegger3-4/+8
Conflicts: src/gallium/state_trackers/python/p_context.i
2010-06-03gallium: silence all debug_named_value related warningsJoakim Sindholt1-15/+15
2010-05-31svga: Add a winsys callback to get the svga_winsys_contextThomas Hellstrom2-0/+8
The winsys may need to extract the svga_winsys_context from a pipe_context. Add a function to enable that functionality. Cherry-picked from commit e8a8c5e339dfd7a36bb6435fd34175482b9187b8 Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2010-05-29svga: adapt to clear interface changesRoland Scheidegger3-4/+8
this should support separate stencil/depth clears just fine.
2010-05-21Merge branch 'gallium-msaa'Roland Scheidegger3-19/+49
Conflicts: src/mesa/state_tracker/st_gen_mipmap.c src/mesa/state_tracker/st_texture.c
2010-05-21Merge branch 'gallium-front-ccw'Keith Whitwell5-42/+42
2010-05-18gallium: implement set_sample_mask() in all driversRoland Scheidegger1-0/+7
prevents segfault when state trackers try to set default mask. Other option would be to make this required only for drivers supporting multisampling, but this seems more clean. Only dummy implementations (for normal drivers) provided (no driver supports multisampling yet neither).
2010-05-17svga: adapt to interface changesRoland Scheidegger2-19/+42
might need further cleanup. Using surfaces internally just to be able to use the existing code might cause unnecessary copies afaict.
2010-05-14gallium: more work on ccw flag removalKeith Whitwell1-6/+6
The linux-debug target builds...
2010-05-14gallium: convert rasterizer state to use gl-style front/back conceptsKeith Whitwell5-36/+36
Use front/back instead of cw/ccw throughout. Also, use offset_point/line/fill instead of offset_cw/ccw. Brings gallium representation of this state into line with its main user, and also what turns out to be the most common hardware representation. This fixes a long-standing bias in the interface towards the architecture of the software rasterizer.
2010-05-12svga: Advertise shader limits.José Fonseca1-0/+51
2010-05-12gallium: Make PIPE_CAP_xxx enums.José Fonseca1-2/+2
2010-05-10svga: Fill in is_resource_referenced callback.José Fonseca1-0/+1
2010-05-05gallium: rename draw() to draw_elements() in vbuf codeBrian Paul1-4/+4
Now we have draw_elements() and draw_arrays() to be consistent with the pipe_context drawing functions.
2010-05-04svga: Remove unnecessary header.Vinson Lee1-1/+0
2010-05-03svga: Silent warning.José Fonseca1-1/+1
2010-05-03svga: Remove the screen private context.José Fonseca11-106/+63
All affected operations have already been moved to context. More cleanup work can be done, in particular with the buffer transfers.
2010-05-03svga: Remove empty file.José Fonseca1-2/+0
2010-05-03svga: Update flags documentation.José Fonseca1-8/+5
2010-05-02svga: Include svga_surface.h in svga_screen.c.Vinson Lee1-0/+1
Fixes svga_screen_init_surface_functions implicit declaration warning.
2010-05-17gallium: EXT_timer_query support.Mathias Fröhlich1-0/+2
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2010-05-14gallium: remove forward declarations of non-existent objectsMarek Olšák1-1/+0
2010-04-21svga: Fix index offsetJakob Bornecrantz1-2/+3
2010-04-20svga: Init surface functionsJakob Bornecrantz1-0/+1
2010-04-19svga: More don't recurseJakob Bornecrantz1-1/+1
2010-04-19svga: Don't recurseJakob Bornecrantz1-1/+1
2010-04-27svga: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.José Fonseca1-3/+0
2010-04-26svga: Pass-through max_index to translate.José Fonseca1-1/+1
2010-04-24svga: D3DCOLOR actually stands for B8G8R8A8.José Fonseca1-1/+1
2010-04-24svga: Translate recently added vertex formats.José Fonseca1-6/+2
2010-04-20gallium: replace pipe_resource::_usage with pipe_resource::usageBrian Paul1-1/+1
2010-04-20Merge branch 'gallium-index-bias'José Fonseca7-23/+32
2010-04-19svga: Implement index bias.José Fonseca7-23/+32
Untested.
2010-04-19Merge branch '7.8'Brian Paul3-3/+5
Conflicts: src/gallium/auxiliary/draw/draw_context.c src/gallium/auxiliary/draw/draw_pipe_aaline.c src/gallium/drivers/llvmpipe/lp_context.c
2010-04-19gallium/draw: use correct rasterization state for wide/AA points/linesBrian Paul3-3/+5
When points or lines are decomposed into triangles, we need to be sure to disable polygon culling, stippling, "un-filled" modes, etc. This patch sets the rasterization state to disable those things prior to drawing points/lines with triangles, then restores the previous state afterward. The new piglit point-no-line-cull test checks this problem & solution.
2010-04-11svga: Remove unnecessary headers.Vinson Lee4-8/+0
2010-04-10svga: Silence uninitialized variable warnings.Vinson Lee1-2/+2