summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915
Commit message (Collapse)AuthorAgeFilesLines
* i915g: Fix 'control reaches end of non-void function' warning.Vinson Lee2010-09-131-1/+2
| | | | | | Fixes the following GCC warning. i915_screen.c: In function 'i915_get_shader_param': i915_screen.c:184: warning: control reaches end of non-void function
* i915: Fix "implicit declaration of function 'draw_get_shader_param'" warning.Vinson Lee2010-09-131-0/+1
| | | | | | Fixes the following GCC warning. i915_screen.c: In function 'i915_get_shader_param': i915_screen.c:147: warning: implicit declaration of function 'draw_get_shader_param'
* gallium: introduce get_shader_param (ALL DRIVERS CHANGED) (v3)Luca Barbieri2010-09-141-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in v3: - Also change trace, which I forgot about Changes in v2: - No longer adds tessellation shaders Currently each shader cap has FS and VS versions. However, we want a version of them for geometry, tessellation control, and tessellation evaluation shaders, and want to be able to easily query a given cap type for a given shader stage. Since having 5 duplicates of each shader cap is unmanageable, add a new get_shader_param function that takes both a shader cap from a new enum and a shader stage. Drivers with non-unified shaders will first switch on the shader and, within each case, switch on the cap. Drivers with unified shaders instead first check whether the shader is supported, and then switch on the cap. MAX_CONST_BUFFERS is now per-stage. The geometry shader cap is removed in favor of checking whether the limit of geometry shader instructions is greater than 0, which is also used for tessellation shaders. WARNING: all drivers changed and compiled but only nvfx tested
* gallium: Use draw_set_index_buffer and others.Chia-I Wu2010-08-252-17/+8
| | | | | | 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.
* gallium: make all checks for PIPE_TEXTURE_2D check for PIPE_TEXTURE_RECT tooLuca Barbieri2010-08-201-1/+4
| | | | | | | Searched for them with: git grep -E '[!=]=.*PIPE_TEXTURE_2D|PIPE_TEXTURE_2D.*[!=]=|case.*PIPE_TEXTURE_2D' Behavior hasn't been changed.
* galahad, i915g: Copy over constant buffer index check.Corbin Simpson2010-08-201-2/+0
|
* galahad, i915g: Move over a few state asserts.Corbin Simpson2010-08-201-3/+0
|
* gallium: Avoid void pointer arithmetic.Chia-I Wu2010-07-291-2/+2
| | | | This fixes fdo bug #29286.
* gallium: Keep only pipe_context::draw_vbo.Chia-I Wu2010-07-291-62/+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.
* gallium: Implement draw_vbo and set_index_buffer for all drivers.Chia-I Wu2010-07-293-17/+68
| | | | | | | | | | | | | | | 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.
* i915g: Set total_nblocksy in from_handleJakob Bornecrantz2010-07-221-0/+1
|
* i915g: Add some debug prints in texture codeJakob Bornecrantz2010-07-221-6/+10
|
* i915g: Ifdef out debug code on non-debug buildsJakob Bornecrantz2010-07-221-0/+5
|
* i915g: Remove unnecessary header.Vinson Lee2010-07-041-1/+0
|
* i915g: Minor cleanupsJakob Bornecrantz2010-07-042-9/+16
|
* i915g: Make batchbuffer flush function not be inlineJakob Bornecrantz2010-07-043-15/+28
|
* i915g: Rename texture state to map stateJakob Bornecrantz2010-07-041-23/+23
|
* i915g: Move fragment state to its own fileJakob Bornecrantz2010-07-046-17/+64
|
* i915g: Move static state to its own fileJakob Bornecrantz2010-07-044-18/+50
|
* i915g: Don't dirty dynamic state if it hasn't changedJakob Bornecrantz2010-07-041-1/+4
|
* i915g: Don't flush after blitJakob Bornecrantz2010-07-041-2/+0
|
* i915g: Don't flush empty batchbuffersJakob Bornecrantz2010-07-041-2/+0
|
* Merge branch 'gallium-drm-driver-drescriptor'Jakob Bornecrantz2010-06-283-7/+14
|\ | | | | | | | | | | | | | | | | 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
| * i915g: Move bootstrap code to targetsJakob Bornecrantz2010-06-063-7/+14
| |
* | i915g: Revert debug hunks from last commitJakob Bornecrantz2010-06-221-2/+2
| |
* | i915g: Reduce state emission by using a index biasJakob Bornecrantz2010-06-221-27/+122
| |
* | i915g: Drop fifo code in vbufJakob Bornecrantz2010-06-221-43/+2
| |
* | i915g: Change state code in vbuf codeJakob Bornecrantz2010-06-221-12/+23
| |
* | i915g: Rework debug print codeJakob Bornecrantz2010-06-2211-82/+190
| |
* | i915g: Switch to state atomsJakob Bornecrantz2010-06-225-57/+128
| |
* | i915g: i915_state_sampler.c code styleJakob Bornecrantz2010-06-221-50/+52
| |
* | i915g: i915_state_immediate.c code styleJakob Bornecrantz2010-06-221-27/+33
| |
* | i915g: i915_state_dynamic.c code styleJakob Bornecrantz2010-06-221-88/+84
| |
* | scons: Disable i915g build if using MSVC.Vinson Lee2010-06-111-0/+4
|/ | | | i915g uses C99 constructs that are not supported by MSVC.
* i915g: fix bug in ds clear logic (still disabled)Roland Scheidegger2010-06-051-2/+2
|
* Merge branch 'gallium-newclear'Roland Scheidegger2010-06-037-29/+72
|\ | | | | | | | | Conflicts: src/gallium/state_trackers/python/p_context.i
| * gallium: rename clearRT / clearDS to clear_render_target / clear_depth_stencilRoland Scheidegger2010-06-031-14/+14
| | | | | | | | | | more consistent with rest of gallium naming conventions. Also rename driver-internal names for these the same.
| * i915g: adapt to clear interface changesRoland Scheidegger2010-05-297-29/+72
| | | | | | | | | | should in theory support separate depth/stencil clears (untested). Also fix some format omissions?
* | i915g: Move pci id to winsys structJakob Bornecrantz2010-05-293-7/+7
|/
* Merge branch 'gallium-msaa'Roland Scheidegger2010-05-215-24/+74
|\ | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_gen_mipmap.c src/mesa/state_tracker/st_texture.c
| * i915g: remove unused flip parameterRoland Scheidegger2010-05-193-3/+0
| |
| * gallium: implement set_sample_mask() in all driversRoland Scheidegger2010-05-181-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).
| * i915g: adapt to interface changesRoland Scheidegger2010-05-172-21/+67
| |
* | Merge branch 'gallium-front-ccw'Keith Whitwell2010-05-211-7/+13
|\ \
| * | gallium: convert rasterizer state to use gl-style front/back conceptsKeith Whitwell2010-05-141-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | gallium: EXT_timer_query support.Mathias Fröhlich2010-05-171-0/+2
|/ / | | | | | | Signed-off-by: Corbin Simpson <[email protected]>
* | gallium: Make PIPE_CAP_xxx enums.José Fonseca2010-05-121-2/+2
| |
* | gallium: rename draw() to draw_elements() in vbuf codeBrian Paul2010-05-051-4/+4
|/ | | | | Now we have draw_elements() and draw_arrays() to be consistent with the pipe_context drawing functions.
* gallium: replace pipe_resource::_usage with pipe_resource::usageBrian Paul2010-04-201-1/+1
|
* Merge branch 'gallium-index-bias'José Fonseca2010-04-201-6/+7
|\