summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_attrib.h
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2018-02-03 21:28:40 +0100
committerMathias Fröhlich <[email protected]>2018-02-23 05:34:04 +0100
commitc757e416ce9547d3335f350fc02c0261d9e006de (patch)
treeea2b4be8635137bb817c8ae2b28d667de6320782 /src/mesa/vbo/vbo_attrib.h
parentef8028017ddd0aa27d0db07c0d7409d0519de6fe (diff)
vbo: Implement tool functions for vbo specific VAO setup.
Correct VBO_MATERIAL_SHIFT value. The functions will be used next in this series. Signed-off-by: Mathias Fröhlich <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo_attrib.h')
-rw-r--r--src/mesa/vbo/vbo_attrib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_attrib.h b/src/mesa/vbo/vbo_attrib.h
index fb178e17d67..0592d845ba4 100644
--- a/src/mesa/vbo/vbo_attrib.h
+++ b/src/mesa/vbo/vbo_attrib.h
@@ -113,8 +113,8 @@ enum vbo_attrib {
VBO_ATTRIB_LAST_MATERIAL - VBO_ATTRIB_FIRST_MATERIAL + 1)
/** Shift to move legacy material attribs into generic slots */
-#define VBO_MATERIAL_SHIFT (VBO_ATTRIB_FIRST_MATERIAL - VBO_ATTRIB_GENERIC0)
-
+#define VBO_MATERIAL_SHIFT \
+ (VBO_ATTRIB_LAST_MATERIAL - VBO_ATTRIB_FIRST_MATERIAL + 1)