r600/sb: add tess/compute initial state registers.
authorDave Airlie <airlied@redhat.com>
Thu, 7 Dec 2017 03:31:41 +0000 (03:31 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 18 Jan 2018 03:35:12 +0000 (03:35 +0000)
This stops them being optimised out.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/sb/sb_bc_parser.cpp

index ae92a767b4cc40495f66a15a9a7a537c302b0388..de3984f5967e2947fe76b6569a18b2355ca7f2c6 100644 (file)
@@ -149,11 +149,14 @@ int bc_parser::parse_decls() {
                }
        }
 
-       if (sh->target == TARGET_VS || sh->target == TARGET_ES || sh->target == TARGET_HS)
+       if (sh->target == TARGET_VS || sh->target == TARGET_ES || sh->target == TARGET_HS || sh->target == TARGET_LS)
                sh->add_input(0, 1, 0x0F);
        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