diff options
author | Marek Olšák <[email protected]> | 2017-04-19 03:24:05 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-04-28 21:47:35 +0200 |
commit | 49cd0cbfd516a8ed24e92d2b672bfccdf54dd2d6 (patch) | |
tree | 097a222b810e70799557a29891ef4d62fe0b4278 | |
parent | 2857b14bbae5f63653c88bb77dc6c05cff55e804 (diff) |
radeonsi/gfx9: disallow scratch buffer for LS-HS and ES-GS
not implemented yet
Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index b2cdcb71944..aff3acf25f9 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -491,6 +491,11 @@ static void si_shader_hs(struct si_screen *sscreen, struct si_shader *shader) * VGPR0-3: (VertexID, RelAutoindex, ???, InstanceID). */ ls_vgpr_comp_cnt = shader->info.uses_instanceid ? 3 : 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) | @@ -796,6 +801,11 @@ static void si_shader_gs(struct si_screen *sscreen, struct si_shader *shader) S_028A94_MAX_PRIMS_PER_SUBGROUP(gs_info.max_prims_per_subgroup)); si_pm4_set_reg(pm4, R_028AAC_VGT_ESGS_RING_ITEMSIZE, shader->key.part.gs.es->esgs_itemsize / 4); + + 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); |