summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvfx
AgeCommit message (Collapse)Author
2010-06-09nvfx: fix typo from gallium-msaa mergeBen Skeggs
2010-06-08gallium: adjust the query interface to support custom typesZack Rusin
we need to change it to support composite types
2010-06-03gallium: rename clearRT / clearDS to clear_render_target / clear_depth_stencilRoland Scheidegger
more consistent with rest of gallium naming conventions. Also rename driver-internal names for these the same.
2010-05-29nvfx: adapt to clear interface changesRoland Scheidegger
2010-05-21Merge branch 'gallium-msaa'Roland Scheidegger
Conflicts: src/mesa/state_tracker/st_gen_mipmap.c src/mesa/state_tracker/st_texture.c
2010-05-21nouveau/nvfx: Fill more PIPE_CAP_MAX_ valuesPatrice Mandin
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
2010-05-21Merge branch 'gallium-front-ccw'Keith Whitwell
2010-05-18gallium: implement set_sample_mask() in all driversRoland Scheidegger
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-17nouveau: adapt to interface changesRoland Scheidegger
this probably needs further cleanup (just getting a surface for the resource seems quite nonoptimal and potentially cause unnecessary copies I think)
2010-05-14gallium: more work on ccw flag removalKeith Whitwell
The linux-debug target builds...
2010-05-14gallium: convert rasterizer state to use gl-style front/back conceptsKeith Whitwell
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-12gallium: Make PIPE_CAP_xxx enums.José Fonseca
2010-05-05nouveau: only advertise PIPE_FORMAT_DXT* if s3tc availableXavier Chantry
2010-05-17gallium: EXT_timer_query support.Mathias Fröhlich
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2010-05-14nouveau/nvfx: Define some capabilities for shadersPatrice Mandin
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
2010-04-27nvfx: Move src/gallium/drivers to beginning of SCons include path.Vinson Lee
libdrm-2.4.20 and earlier include the nouveau/nouveau_class.h header. A later version of libdrm will not ship this header. Mesa also has this header at src/gallium/drivers. The symbol NV34TCL_VTXFMT_TYPE_HALF is needed by nvfx_vbo.c. This symbol is not in the libdrm copy of the header but is in the Mesa copy of the header. This patch moves src/gallium/drivers to the beginning of the include paths such that when building on hosts with libdrm-2.4.20 or ealier the build uses the copy in Mesa.
2010-04-25nvfx: Add include path to SCons build.Vinson Lee
2010-04-25nvfx: Add missing header.Vinson Lee
2010-04-24nvfx: Add to SCons build.Vinson Lee
2010-04-20gallium: replace pipe_resource::_usage with pipe_resource::usageBrian Paul
2010-04-20nvfx: Fix typo.José Fonseca
2010-04-20Merge branch 'gallium-index-bias'José Fonseca
2010-04-19nvfx: Adapt for index bias interface change.José Fonseca
2010-04-19Merge branch '7.8'Brian Paul
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-18nvfx: Fix include recursion.Vinson Lee
Don't include nvfx_context.h and use a forward reference instead. nvfx_context.h includes nvfx_screen.h (itself).
2010-04-18nvfx: Add missing header and forward declaration.Vinson Lee
2010-04-18nvfx: move declarations before codeBrian Paul
2010-04-18nvfx: fix void * arithmetic warningBrian Paul
2010-04-18nvfx: move declarations before codeBrian Paul
2010-04-18nvfx: move declarations before code to silence warningsBrian Paul
2010-04-18nvfx: fix fragment program constant updatesLuca Barbieri
2010-04-17nvfx: Initialize variables.Vinson Lee
2010-04-17nvfx: Remove unused variables.Vinson Lee
2010-04-17nvfx: Remove unnecessary headers.Vinson Lee
2010-04-15nvfx: dont swizzle stuff into GARTXavier Chantry
swzsurf doesn't support GART Thanks to Marcin Kościelnicki <koriakin@0x04.net> for spotting that ! This fixes corruption in etracer and the following related errors : [14381.551927] [drm] nouveau 0000:01:00.0: PGRAPH_ERROR - nSource: PROTECTION_ERROR, nStatus: INVALID_STATE [14381.551945] [drm] nouveau 0000:01:00.0: PGRAPH_ERROR - Ch 2/2 Class 0x039e Mthd 0x0184 Data 0x00001cd9:0x00001cd9 Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Adapted by Luca Barbieri for mesa master.
2010-04-15nouveau: replace vtxbuf/idxbuf caps with BO_ flags in nouveau_screen and fix ↵Luca Barbieri
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.
2010-04-13nvfx: use dynamically sized rotating BO pool for fragment programsLuca Barbieri
Currently we used a single buffer for each fragment programs, leading to rendering synchronization. This patch uses a doubly linked list of BOs, which is dynamically resized if all the BOs are busy. Note that inline image transfers could be an alternative option: this will be explored later. This removes one of the big performance limitations of the current driver. We also stop using pipe_resource internally in favor of using nouveau_bo directly.
2010-04-13nvfx: fix for 64-bit systemsLuca Barbieri
Thanks to Patrice Mandin for debugging this.
2010-04-12nvfx: add LRP in vertprogLuca Barbieri
glsl generates these.
2010-04-12nvfx: add SIN and COS in vertprogLuca Barbieri
2010-04-12nvfx: add missing vertprog setcond instructionsLuca Barbieri
Trivially adds SEQ, SGT, SLE, SNE, SFL, STR and SSG which were missing.
2010-04-12nvfx: allocate a bigger block for queriesLuca Barbieri
This patch allocates a bigger chunk of memory to store queries in, increasing the (hidden) outstanding query limit.
2010-04-12nvfx: support an unlimited number of occlusion queriesLuca Barbieri
Currently on nv30/nv40 an assert will be triggered once 32 queries are outstanding. This violates the OpenGL/Gallium interface, which requires support for an unlimited number of fences. This patch fixes the problem by putting queries in a linked list and waiting on the oldest one if allocation fails. nVidia seems to use a similar strategy, but with 1024 instead of 32 fences. The next patch will improve this.
2010-04-12nvfx: fix TXL opcode valueLuca Barbieri
Was broken during unification
2010-04-12nvfx: Add support for two sided colorLuca Barbieri
This patch adds support for two-sided vertex color to nv30/nv40. When set, the COLOR0/1 fs inputs on back faces will be wired to vs outputs BCOLOR0/1. This makes OpenGL two sided lighting work, which can be tested with progs/demos/projtex.
2010-04-12nvfx: fix compile errorLuca Barbieri
2010-04-12nvfx: don't use hw index buffers on nv3x and nv44Luca Barbieri
They only apparently work on nv40 grclass cards, and this was the previous behavior of the driver. This really needs to be investigated more.
2010-04-12nvfx: expose PIPE_FORMAT_B8G8R8X8_UNORM supportLuca Barbieri
This is implemented in nvfx_state_fb and fragtex but was missing in nvfx_screen. This allows to avoid glCopyTexSubImage CPU fallbacks and makes Doom 3 much faster as a result.
2010-04-12nvfx: add support for ARB_half_float_vertexLuca Barbieri
2010-04-12nvfx: allocate buffers in GART if !NOUVEAU_SWTNLLuca Barbieri
Should improve performance and fix serious regressions on AGP cards.