diff options
author | Marek Olšák <[email protected]> | 2017-10-05 20:05:44 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-10-07 18:26:35 +0200 |
commit | 6a8401a94e054e91ff599b57913bcab0c1010d91 (patch) | |
tree | d8bf626e2bfd8788a3f6b68e51115af5a039ad51 /src/gallium/drivers/radeonsi/si_shader.h | |
parent | f3fe6afba8c0e33b9857a8f907913ce63164e0c1 (diff) |
radeonsi: add VS blit shader creation
no users yet
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index f457f8e20b1..ba80f550e49 100644 --- a/src/gallium/drivers/radeonsi/si_shader.h +++ b/src/gallium/drivers/radeonsi/si_shader.h @@ -176,6 +176,8 @@ enum { SI_SGPR_VS_STATE_BITS, SI_VS_NUM_USER_SGPR, + SI_SGPR_VS_BLIT_DATA = SI_SGPR_CONST_AND_SHADER_BUFFERS, + /* TES */ SI_SGPR_TES_OFFCHIP_LAYOUT = SI_NUM_RESOURCE_SGPRS, SI_SGPR_TES_OFFCHIP_ADDR_BASE64K, @@ -263,6 +265,16 @@ enum { TGSI_SEMANTIC_DEFAULT_TESSINNER_SI, }; +enum { + /* Use a property enum that VS wouldn't use. */ + TGSI_PROPERTY_VS_BLIT_SGPRS = TGSI_PROPERTY_FS_COORD_ORIGIN, + + /* These represent the number of SGPRs the shader uses. */ + SI_VS_BLIT_SGPRS_POS = 3, + SI_VS_BLIT_SGPRS_POS_COLOR = 7, + SI_VS_BLIT_SGPRS_POS_TEXCOORD = 9, +}; + /* For VS shader key fix_fetch. */ enum { SI_FIX_FETCH_NONE = 0, |