summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'gallium-msaa'Roland Scheidegger2010-05-216-18/+47
|\ | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_gen_mipmap.c src/mesa/state_tracker/st_texture.c
| * 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-175-18/+40
| | | | | | | | | | this probably needs further cleanup (just getting a surface for the resource seems quite nonoptimal and potentially cause unnecessary copies I think)
* | nouveau/nvfx: Fill more PIPE_CAP_MAX_ valuesPatrice Mandin2010-05-211-13/+14
| | | | | | | | Signed-off-by: Patrice Mandin <[email protected]>
* | Merge branch 'gallium-front-ccw'Keith Whitwell2010-05-211-50/+23
|\ \
| * | 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-50/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]>
* | | nouveau/nvfx: Define some capabilities for shadersPatrice Mandin2010-05-141-0/+38
|/ / | | | | | | Signed-off-by: Patrice Mandin <[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
|/
* nvfx: Move src/gallium/drivers to beginning of SCons include path.Vinson Lee2010-04-271-1/+1
| | | | | | | | | | | | 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.
* nvfx: Add include path to SCons build.Vinson Lee2010-04-251-0/+4
|
* nvfx: Add missing header.Vinson Lee2010-04-251-0/+1
|
* nvfx: Add to SCons build.Vinson Lee2010-04-241-0/+36
|
* gallium: replace pipe_resource::_usage with pipe_resource::usageBrian Paul2010-04-204-7/+7
|
* nvfx: Fix typo.José Fonseca2010-04-201-1/+1
|
* Merge branch 'gallium-index-bias'José Fonseca2010-04-203-16/+24
|\
| * nvfx: Adapt for index bias interface change.José Fonseca2010-04-193-16/+24
| |
* | Merge branch '7.8'Brian Paul2010-04-192-2/+3
| | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_context.c src/gallium/auxiliary/draw/draw_pipe_aaline.c src/gallium/drivers/llvmpipe/lp_context.c
* | nvfx: Fix include recursion.Vinson Lee2010-04-181-1/+2
| | | | | | | | | | Don't include nvfx_context.h and use a forward reference instead. nvfx_context.h includes nvfx_screen.h (itself).
* | nvfx: Add missing header and forward declaration.Vinson Lee2010-04-181-0/+4
| |
* | nvfx: move declarations before codeBrian Paul2010-04-181-11/+12
| |
* | nvfx: fix void * arithmetic warningBrian Paul2010-04-181-1/+1
| |
* | nvfx: move declarations before codeBrian Paul2010-04-181-4/+9
| |
* | nvfx: move declarations before code to silence warningsBrian Paul2010-04-183-6/+11
| |
* | nvfx: fix fragment program constant updatesLuca Barbieri2010-04-181-1/+4
|/
* nvfx: Initialize variables.Vinson Lee2010-04-172-4/+4
|
* nvfx: Remove unused variables.Vinson Lee2010-04-172-3/+0
|
* nvfx: Remove unnecessary headers.Vinson Lee2010-04-174-6/+0
|
* nvfx: dont swizzle stuff into GARTXavier Chantry2010-04-151-2/+2
| | | | | | | | | | | | | | | | swzsurf doesn't support GART Thanks to Marcin Kościelnicki <[email protected]> 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 <[email protected]> Adapted by Luca Barbieri for mesa master.
* nouveau: replace vtxbuf/idxbuf caps with BO_ flags in nouveau_screen and fix ↵Luca Barbieri2010-04-153-17/+28
| | | | | | | | | | | | 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.
* nvfx: use dynamically sized rotating BO pool for fragment programsLuca Barbieri2010-04-132-110/+137
| | | | | | | | | | | | | | | 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.
* nvfx: fix for 64-bit systemsLuca Barbieri2010-04-131-1/+1
| | | | Thanks to Patrice Mandin for debugging this.
* nvfx: add LRP in vertprogLuca Barbieri2010-04-121-0/+5
| | | | glsl generates these.
* nvfx: add SIN and COS in vertprogLuca Barbieri2010-04-121-0/+6
|
* nvfx: add missing vertprog setcond instructionsLuca Barbieri2010-04-121-0/+18
| | | | Trivially adds SEQ, SGT, SLE, SNE, SFL, STR and SSG which were missing.
* nvfx: allocate a bigger block for queriesLuca Barbieri2010-04-122-4/+11
| | | | | This patch allocates a bigger chunk of memory to store queries in, increasing the (hidden) outstanding query limit.
* nvfx: support an unlimited number of occlusion queriesLuca Barbieri2010-04-123-8/+22
| | | | | | | | | | | | | | 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.
* nvfx: fix TXL opcode valueLuca Barbieri2010-04-121-1/+1
| | | | Was broken during unification
* nvfx: Add support for two sided colorLuca Barbieri2010-04-122-2/+4
| | | | | | | 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.
* nvfx: fix compile errorLuca Barbieri2010-04-121-1/+1
|
* nvfx: don't use hw index buffers on nv3x and nv44Luca Barbieri2010-04-122-2/+3
| | | | | | | They only apparently work on nv40 grclass cards, and this was the previous behavior of the driver. This really needs to be investigated more.
* nvfx: expose PIPE_FORMAT_B8G8R8X8_UNORM supportLuca Barbieri2010-04-121-0/+2
| | | | | | | | 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.
* nvfx: add support for ARB_half_float_vertexLuca Barbieri2010-04-121-0/+10
|
* nvfx: allocate buffers in GART if !NOUVEAU_SWTNLLuca Barbieri2010-04-121-2/+1
| | | | Should improve performance and fix serious regressions on AGP cards.
* nvfx: move check for NOUVEAU_SWTNLLuca Barbieri2010-04-123-11/+5
|
* nvfx: remove #include "nouveau_stateobj.h"Luca Barbieri2010-04-121-1/+0
| | | | No longer used, finally!
* nvfx: rework validation logic to use code and avoid stateobjsLuca Barbieri2010-04-1218-285/+127
| | | | | This makes the code faster due to the lack of indirect calls and also makes it much easier to understand what is actually going on.
* nvfx: add NVFX_NEW_{FRAG,VERT}CONSTLuca Barbieri2010-04-124-4/+6
|