ac: Parse the new HS RSRC1 register.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 16 Oct 2017 21:58:48 +0000 (23:58 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 19 Oct 2017 20:24:20 +0000 (22:24 +0200)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_binary.c

index 1bf52c783281aff6d62732f834826542d1f70018..cf0125c415f09d3f95d55a2c38340a707b02f1c9 100644 (file)
@@ -252,6 +252,7 @@ void ac_shader_binary_read_config(struct ac_shader_binary *binary,
                case R_00B128_SPI_SHADER_PGM_RSRC1_VS:
                case R_00B228_SPI_SHADER_PGM_RSRC1_GS:
                case R_00B848_COMPUTE_PGM_RSRC1:
+               case R_00B428_SPI_SHADER_PGM_RSRC1_HS:
                        conf->num_sgprs = MAX2(conf->num_sgprs, (G_00B028_SGPRS(value) + 1) * 8);
                        conf->num_vgprs = MAX2(conf->num_vgprs, (G_00B028_VGPRS(value) + 1) * 4);
                        conf->float_mode =  G_00B028_FLOAT_MODE(value);