summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50
Commit message (Collapse)AuthorAgeFilesLines
* nv50: Silence incompatible pointer type initialization warning.Vinson Lee2010-08-211-2/+3
| | | | | Silence the following GCC warning. warning: initialization from incompatible pointer type
* nv50: Disable unused code.Vinson Lee2010-08-211-0/+4
| | | | | Disable release_hw and emit_mov_from_pred functions as they are currently not being used.
* nv50: use NV50TIC_0_2_TARGET_RECTLuca Barbieri2010-08-201-1/+3
|
* gallium: make all checks for PIPE_TEXTURE_2D check for PIPE_TEXTURE_RECT tooLuca Barbieri2010-08-202-1/+3
| | | | | | | Searched for them with: git grep -E '[!=]=.*PIPE_TEXTURE_2D|PIPE_TEXTURE_2D.*[!=]=|case.*PIPE_TEXTURE_2D' Behavior hasn't been changed.
* auxiliary: fix u_split_prim naming conventionLuca Barbieri2010-08-112-6/+6
| | | | Current practice is to start identifiers with "util_" instead of "u_".
* auxiliary: move Ben Skeggs' primitive splitter to common codeLuca Barbieri2010-08-112-2/+2
| | | | | | | | | | | | | | | | | | | | | 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.
* gallium: Keep only pipe_context::draw_vbo.Chia-I Wu2010-07-293-41/+2
| | | | | | | 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-294-0/+50
| | | | | | | | | | | | | | | 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.
* nv50: implement depth clampChristoph Bumiller2010-07-234-10/+33
|
* nv50: s/__func__/__FUNCTION__/Vinson Lee2010-07-161-1/+1
|
* nv: fix compile after the latest gs changesZack Rusin2010-06-091-1/+1
|
* nv50: fix typo from gallium-msaa mergeBen Skeggs2010-06-091-1/+1
|
* nv50: use MARK_RING correctlyBen Skeggs2010-06-091-4/+6
|
* gallium: adjust the query interface to support custom typesZack Rusin2010-06-081-1/+2
| | | | we need to change it to support composite types
* nv50: Remove unnecessary header.Vinson Lee2010-06-031-1/+0
|
* gallium: rename clearRT / clearDS to clear_render_target / clear_depth_stencilRoland Scheidegger2010-06-031-6/+6
| | | | | more consistent with rest of gallium naming conventions. Also rename driver-internal names for these the same.
* nv50: adapt to clear interface changesRoland Scheidegger2010-05-293-18/+22
| | | | should support separate depth/stencil clears just fine.
* Merge branch 'gallium-msaa'Roland Scheidegger2010-05-213-10/+39
|\ | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_gen_mipmap.c src/mesa/state_tracker/st_texture.c
| * nv50: fix typo: s/_/./Brian Paul2010-05-191-1/+1
| |
| * 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).
| * nouveau: adapt to interface changesRoland Scheidegger2010-05-172-10/+32
| | | | | | | | | | this probably needs further cleanup (just getting a surface for the resource seems quite nonoptimal and potentially cause unnecessary copies I think)
* | Merge branch 'gallium-front-ccw'Keith Whitwell2010-05-211-55/+27
|\ \
| * | gallium: more work on ccw flag removalKeith Whitwell2010-05-141-1/+1
| | | | | | | | | | | | The linux-debug target builds...
| * | gallium: convert rasterizer state to use gl-style front/back conceptsKeith Whitwell2010-05-141-55/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | nv50: fixed other void pointer arithmetic errorsXavier Chantry2010-05-201-5/+6
| | |
* | | nv50: fix too long shader uploads by splitting themXavier Chantry2010-05-202-8/+19
| | |
* | | nv50: fill in shader limitsChristoph Bumiller2010-05-201-0/+28
| | |
* | | 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
| |
* | nouveau: only advertise PIPE_FORMAT_DXT* if s3tc availableXavier Chantry2010-05-051-4/+12
|/
* nv50: raise constant buffers size to maximumChristoph Bumiller2010-04-303-15/+10
| | | | | Removed the param heaps, haven't been using them for a long time now.
* nv50: relax restriction on surface_copy format equality a bitChristoph Bumiller2010-04-301-1/+27
|
* nv50: don't segfault on OPCODE_END for empty programsChristoph Bumiller2010-04-301-5/+6
|
* nv50: Add to SCons build.Vinson Lee2010-04-241-0/+26
|
* nv50: make a working check for user memory vertex/index buffersChristoph Bumiller2010-04-202-2/+10
|
* nv50: fix FP result counting for depth outputChristoph Bumiller2010-04-201-1/+1
|
* nv50: support vertex index biasChristoph Bumiller2010-04-202-7/+41
|
* nv50: move declaration before codeBrian Paul2010-04-201-1/+1
|
* nv50: fixed void pointer arithment warningBrian Paul2010-04-201-1/+1
|
* gallium: replace pipe_resource::_usage with pipe_resource::usageBrian Paul2010-04-201-2/+2
|
* nv50: add missing idxbias param to nv50_push_elements_instanced()Brian Paul2010-04-202-4/+5
|
* Merge branch 'gallium-index-bias'José Fonseca2010-04-203-6/+11
|\
| * nv50: Adapt for index bias interface change.José Fonseca2010-04-193-6/+11
| |
* | Merge branch '7.8'Brian Paul2010-04-191-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_context.c src/gallium/auxiliary/draw/draw_pipe_aaline.c src/gallium/drivers/llvmpipe/lp_context.c
| * | gallium/draw: use correct rasterization state for wide/AA points/linesBrian Paul2010-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | nv50: Fix include recursion.Vinson Lee2010-04-191-1/+2
| |/ |/| | | | | | | Don't include nv50_context.h and use a forward declaration instead. nv50_context.h includes nv50_screen.h (itself).
* | nv50: Initialize variables.Vinson Lee2010-04-172-6/+6
| | | | | | | | Silences GCC uninitialized variable warnings.
* | nv50: Remove unused variable.Vinson Lee2010-04-171-2/+0
| |
* | nv50: Remove redundant assignment.Vinson Lee2010-04-171-1/+1
| |
* | nouveau: replace vtxbuf/idxbuf caps with BO_ flags in nouveau_screen and fix ↵Luca Barbieri2010-04-151-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | uncached reads on nv3x Faster, simpler and more flexible. Also, we set those flags properly on nv3x so that we don't allocate buffers in GART. Since on AGP GART is uncached, OpenGL doesn't distinguish between vertex and index buffers, and we don't support hardware index buffers for now, this caused uncached reads. Also check bind and not usage for PIPE_BIND_* flags, got broken in the gallium-resources transition.