summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_context.h
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-01-11 01:09:44 +0100
committerLuca Barbieri <[email protected]>2010-04-12 20:46:18 +0200
commit7fc7b759950e8c7482a3dbbf25d6604960c25092 (patch)
tree1c915912f6329215a6c40e52173698ac8a139559 /src/gallium/drivers/nvfx/nvfx_context.h
parenta2ddae0fc3afcf52f79ab9ceb7d84342eb3dd612 (diff)
nvfx: Add support for two sided color
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.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_context.h')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_context.h b/src/gallium/drivers/nvfx/nvfx_context.h
index fea05ac81ab..e2c6d09fa19 100644
--- a/src/gallium/drivers/nvfx/nvfx_context.h
+++ b/src/gallium/drivers/nvfx/nvfx_context.h
@@ -46,7 +46,7 @@
struct nvfx_rasterizer_state {
struct pipe_rasterizer_state pipe;
unsigned sb_len;
- uint32_t sb[30];
+ uint32_t sb[32];
};
struct nvfx_zsa_state {