summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvfx/nvfx_screen.h
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-01-11 03:13:42 +0100
committerLuca Barbieri <luca@luca-barbieri.com>2010-03-23 18:11:25 +0100
commit3428a305150e98c8002e0fb339f5667c5533c0d1 (patch)
tree5e6a12ce0310de019ac08fb56926ff3285b33fa4 /src/gallium/drivers/nvfx/nvfx_screen.h
parent208f5bf3cd8555f5b896c3e9d60c26f1bdb8683c (diff)
nvfx: add NOUVEAU_VTXIDX_IN_VRAM variable to put vertex/index buffers in VRAM
On some systems, putting vertex and index buffers in VRAM instead of GART memory eliminates massive graphics corruption which is otherwise present, due to unclear causes. This patch adds an environment variable that does that, along with helpful messages. It turns it on by default on G7x, as it is what I am seeing corruption on and some other reports also seemed to pinpoint these cards.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_screen.h')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_screen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_screen.h b/src/gallium/drivers/nvfx/nvfx_screen.h
index c0b4b9899d..baa848c47a 100644
--- a/src/gallium/drivers/nvfx/nvfx_screen.h
+++ b/src/gallium/drivers/nvfx/nvfx_screen.h
@@ -12,6 +12,7 @@ struct nvfx_screen {
struct nvfx_context *cur_ctx;
unsigned is_nv4x; /* either 0 or ~0 */
+ int vertex_buffer_flags;
/* HW graphics objects */
struct nv04_surface_2d *eng2d;