summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_state_inlines.h
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-12-17 21:25:47 +0100
committerMichal Krol <michal@vmware.com>2009-12-17 21:25:47 +0100
commit3af2ddbe943f0fe0d6b0ba9e627cbb82d0cc79f2 (patch)
tree48e4c6765ce157b55e578d0860c7284ca7f954f6 /src/gallium/drivers/r300/r300_state_inlines.h
parentdfdf83d714c0d32d9182eb3001cf642aa6cb5c87 (diff)
s/desc->type/desc->channel[0].type/
Diffstat (limited to 'src/gallium/drivers/r300/r300_state_inlines.h')
-rw-r--r--src/gallium/drivers/r300/r300_state_inlines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_state_inlines.h b/src/gallium/drivers/r300/r300_state_inlines.h
index 7cd1f87630..dbe42edd91 100644
--- a/src/gallium/drivers/r300/r300_state_inlines.h
+++ b/src/gallium/drivers/r300/r300_state_inlines.h
@@ -483,7 +483,7 @@ r300_translate_vertex_data_type(enum pipe_format format) {
assert(0);
}
- switch (desc->type) {
+ switch (desc->channel[0].type) {
/* Half-floats, floats, doubles */
case UTIL_FORMAT_TYPE_FLOAT:
switch (util_format_get_component_bits(format, UTIL_FORMAT_COLORSPACE_RGB, 0)) {
@@ -525,7 +525,7 @@ r300_translate_vertex_data_type(enum pipe_format format) {
assert(0);
}
- if (desc->type == UTIL_FORMAT_TYPE_SIGNED) {
+ if (desc->channel[0].type == UTIL_FORMAT_TYPE_SIGNED) {
result |= R300_SIGNED;
}
if (desc->channel[0].normalized) {