mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 10:40:11 +01:00
radeonsi/gfx10: implement si_emit_global_shader_pointers
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
6bcc273de8
commit
bc25ccfe22
1 changed files with 12 additions and 1 deletions
|
|
@ -2208,7 +2208,18 @@ static void si_emit_consecutive_shader_pointers(struct si_context *sctx,
|
|||
static void si_emit_global_shader_pointers(struct si_context *sctx,
|
||||
struct si_descriptors *descs)
|
||||
{
|
||||
if (sctx->chip_class == GFX9) {
|
||||
if (sctx->chip_class >= GFX10) {
|
||||
si_emit_shader_pointer(sctx, descs,
|
||||
R_00B030_SPI_SHADER_USER_DATA_PS_0);
|
||||
/* HW VS stage only used in non-NGG mode. */
|
||||
si_emit_shader_pointer(sctx, descs,
|
||||
R_00B130_SPI_SHADER_USER_DATA_VS_0);
|
||||
si_emit_shader_pointer(sctx, descs,
|
||||
R_00B230_SPI_SHADER_USER_DATA_GS_0);
|
||||
si_emit_shader_pointer(sctx, descs,
|
||||
R_00B430_SPI_SHADER_USER_DATA_HS_0);
|
||||
return;
|
||||
} else if (sctx->chip_class == GFX9) {
|
||||
/* Broadcast it to all shader stages. */
|
||||
si_emit_shader_pointer(sctx, descs,
|
||||
R_00B530_SPI_SHADER_USER_DATA_COMMON_0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue