summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-01-03 00:47:30 +0000
committerJosé Fonseca <[email protected]>2010-01-03 00:50:13 +0000
commitcdb445f3a9285e2d8f042a07021ade78b94e0156 (patch)
treede16097633746d5ce2d273ca9751b5cbf804153f /src/gallium/drivers/svga/svga_context.h
parent904917dcc67e15830a4fe106a243eb57dde985ea (diff)
svga: Use a shader id as low as possible.
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r--src/gallium/drivers/svga/svga_context.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index e650a251d19..eb666c2616b 100644
--- a/src/gallium/drivers/svga/svga_context.h
+++ b/src/gallium/drivers/svga/svga_context.h
@@ -41,6 +41,7 @@
struct draw_vertex_shader;
struct svga_shader_result;
struct SVGACmdMemory;
+struct util_bitmask;
struct u_upload_mgr;
@@ -321,12 +322,14 @@ struct svga_context
boolean new_vdecl;
} swtnl;
+ /* Bitmask of used shader IDs */
+ struct util_bitmask *fs_bm;
+ struct util_bitmask *vs_bm;
+
struct {
unsigned dirty[4];
unsigned texture_timestamp;
- unsigned next_fs_id;
- unsigned next_vs_id;
/* Internally generated shaders:
*/