[Mesa-dev] [PATCH 1/2] r600/sb: add compute initial state registers.
Dave Airlie
airlied at gmail.com
Thu Dec 7 04:34:30 UTC 2017
From: Dave Airlie <airlied at redhat.com>
This stops them being optimised out.
---
src/gallium/drivers/r600/sb/sb_bc_parser.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/r600/sb/sb_bc_parser.cpp b/src/gallium/drivers/r600/sb/sb_bc_parser.cpp
index ae92a767b4c..8a4abd48306 100644
--- a/src/gallium/drivers/r600/sb/sb_bc_parser.cpp
+++ b/src/gallium/drivers/r600/sb/sb_bc_parser.cpp
@@ -154,6 +154,9 @@ int bc_parser::parse_decls() {
else if (sh->target == TARGET_GS) {
sh->add_input(0, 1, 0x0F);
sh->add_input(1, 1, 0x0F);
+ } else if (sh->target == TARGET_COMPUTE) {
+ sh->add_input(0, 1, 0x0F);
+ sh->add_input(1, 1, 0x0F);
}
bool ps_interp = ctx.hw_class >= HW_CLASS_EVERGREEN
--
2.14.3
More information about the mesa-dev
mailing list