summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_vbo.c
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-12-17 21:25:47 +0100
committerMichal Krol <[email protected]>2009-12-17 21:25:47 +0100
commit3af2ddbe943f0fe0d6b0ba9e627cbb82d0cc79f2 (patch)
tree48e4c6765ce157b55e578d0860c7284ca7f954f6 /src/gallium/drivers/nv50/nv50_vbo.c
parentdfdf83d714c0d32d9182eb3001cf642aa6cb5c87 (diff)
s/desc->type/desc->channel[0].type/
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_vbo.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_vbo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_vbo.c b/src/gallium/drivers/nv50/nv50_vbo.c
index d1c9f3f5900..f7fa0659e8c 100644
--- a/src/gallium/drivers/nv50/nv50_vbo.c
+++ b/src/gallium/drivers/nv50/nv50_vbo.c
@@ -71,7 +71,7 @@ nv50_vbo_type_to_hw(enum pipe_format format)
desc = util_format_description(format);
assert(desc);
- switch (desc->type) {
+ switch (desc->channel[0].type) {
case UTIL_FORMAT_TYPE_FLOAT:
return NV50TCL_VERTEX_ARRAY_ATTRIB_TYPE_FLOAT;
case UTIL_FORMAT_TYPE_UNSIGNED:
@@ -339,7 +339,7 @@ nv50_vbo_static_attrib(struct nv50_context *nv50, unsigned attrib,
desc = util_format_description(pf);
assert(desc);
- if ((desc->type != UTIL_FORMAT_TYPE_FLOAT) ||
+ if ((desc->channel[0].type != UTIL_FORMAT_TYPE_FLOAT) ||
util_format_get_component_bits(pf, UTIL_FORMAT_COLORSPACE_RGB, 0) != 32)
return FALSE;