diff options
author | Marek Olšák <[email protected]> | 2017-04-27 02:20:13 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-05-05 00:23:44 +0200 |
commit | 194d9b27cc3fb49753a8ae41a322f8903f4e06cd (patch) | |
tree | dc7fa0ca9077b22f1d12805a3111be237989dede /src/gallium | |
parent | 8ac4923a67ae77ed26b5233b2dd72d14a4518ec1 (diff) |
radeonsi/gfx9: allow the scratch buffer in HS and GS
It works now.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 7da52f63456..8c09ff12687 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -498,11 +498,6 @@ static void si_shader_hs(struct si_screen *sscreen, struct si_shader *shader) */ ls_vgpr_comp_cnt = shader->info.uses_instanceid ? 2 : 1; - if (shader->config.scratch_bytes_per_wave) { - fprintf(stderr, "HS: scratch buffer unsupported"); - abort(); - } - shader->config.rsrc2 = S_00B42C_USER_SGPR(GFX9_TCS_NUM_USER_SGPR) | S_00B42C_USER_SGPR_MSB(GFX9_TCS_NUM_USER_SGPR >> 5) | @@ -816,11 +811,6 @@ static void si_shader_gs(struct si_screen *sscreen, struct si_shader *shader) polaris_set_vgt_vertex_reuse(sscreen, shader->key.part.gs.es, NULL, pm4); - - if (shader->config.scratch_bytes_per_wave) { - fprintf(stderr, "GS: scratch buffer unsupported"); - abort(); - } } else { si_pm4_set_reg(pm4, R_00B220_SPI_SHADER_PGM_LO_GS, va >> 8); si_pm4_set_reg(pm4, R_00B224_SPI_SHADER_PGM_HI_GS, va >> 40); |