OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b18840a
)
broadcom/vc5: Fix incorrect padding of TF outputs.
author
Eric Anholt
<eric@anholt.net>
Tue, 21 Nov 2017 23:20:31 +0000
(15:20 -0800)
committer
Eric Anholt
<eric@anholt.net>
Wed, 22 Nov 2017 18:56:31 +0000
(10:56 -0800)
After the first output, we were padding by an extra size of the previous
output. Fixes piglit ext_transform_feedback-output-type mat4x3[2] and
friends.
src/gallium/drivers/vc5/vc5_program.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc5/vc5_program.c
b/src/gallium/drivers/vc5/vc5_program.c
index
cf2d1b8
..
a356d06
100644
(file)
--- a/
src/gallium/drivers/vc5/vc5_program.c
+++ b/
src/gallium/drivers/vc5/vc5_program.c
@@
-79,6
+79,7
@@
vc5_set_transform_feedback_outputs(struct vc5_uncompiled_shader *so,
slots[slot_count] =
v3d_slot_from_slot_and_component(VARYING_SLOT_POS, 0);
slot_count++;
+ buffer_offset++;
}
/* Set the coordinate shader up to output the
@@
-92,6
+93,7
@@
vc5_set_transform_feedback_outputs(struct vc5_uncompiled_shader *so,
v3d_slot_from_slot_and_component(slot,
output->start_component + j);
slot_count++;
+ buffer_offset++;
}
}