summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_screen.h
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2009-05-23 16:13:24 +0200
committerBen Skeggs <[email protected]>2009-05-28 16:06:24 +1000
commit94ba165dffa4d364a1335d3cd7c15558bf35fe3e (patch)
tree0dd87a7d5ad5f291d53203ac723c9b56586dc228 /src/gallium/drivers/nv50/nv50_screen.h
parentf9268ccd7f2ef2476db48f0aaca739bfb4ee9eab (diff)
nv50: use multiple constant buffers
Use different buffers for immds, FP params, and VP params. One has to map constant buffer indices in shader code to buffers defined via CB_DEF. In principle, we could use more buffers so we'd have to change the shader code less frequently.
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_screen.h')
-rw-r--r--src/gallium/drivers/nv50/nv50_screen.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_screen.h b/src/gallium/drivers/nv50/nv50_screen.h
index db567aaac89..31b8ef29c98 100644
--- a/src/gallium/drivers/nv50/nv50_screen.h
+++ b/src/gallium/drivers/nv50/nv50_screen.h
@@ -15,8 +15,11 @@ struct nv50_screen {
struct nouveau_grobj *m2mf;
struct nouveau_notifier *sync;
- struct pipe_buffer *constbuf;
- struct nouveau_resource *vp_data_heap;
+ struct pipe_buffer *constbuf_misc[1];
+ struct pipe_buffer *constbuf_parm[2];
+
+ struct nouveau_resource *immd_heap[1];
+ struct nouveau_resource *parm_heap[2];
struct pipe_buffer *tic;
struct pipe_buffer *tsc;