summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-10-21 05:45:05 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-10-21 06:52:23 -0700
commitb589e39809fa9d0b24a708d792b70ae5b120ffb8 (patch)
tree1ea6e41f00cdbfdaf3b0680d9c559107a81ba6a9 /src/gallium
parentb21df2620ef970daa306e06c6ca69a9b66280cd6 (diff)
r300g: Examine vertex attribute type on HW TCL too.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r300/r300_state_derived.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c
index 5df1a0cd63..7297f9c653 100644
--- a/src/gallium/drivers/r300/r300_state_derived.c
+++ b/src/gallium/drivers/r300/r300_state_derived.c
@@ -244,10 +244,8 @@ static void r300_vertex_psc(struct r300_context* r300,
assert(tab[i] != -1);
/* Add the attribute to the PSC table. */
- temp = r300screen->caps->has_tcl ?
- R300_DATA_TYPE_FLOAT_4 :
- translate_vertex_data_type(vinfo->attrib[i].emit);
- temp |= tab[i] << R300_DST_VEC_LOC_SHIFT;
+ temp = translate_vertex_data_type(vinfo->attrib[i].emit) |
+ tab[i] << R300_DST_VEC_LOC_SHIFT;
if (i & 1) {
vformat->vap_prog_stream_cntl[i >> 1] &= 0x0000ffff;