diff options
author | Marek Olšák <[email protected]> | 2015-01-04 14:51:01 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-01-07 12:06:43 +0100 |
commit | e3d4bdd6a854591a54733b7b68035f1a30baeafe (patch) | |
tree | 159f65b2f92a42e25517c6b4a9ab7b989162e0c2 /src | |
parent | d7c6f397f44ae6a0ba63d8734b133196fe88443e (diff) |
radeonsi: implement VERTEXID_NOBASE and BASEVERTEX system values
Only done for completeness. Not used by anything yet.
Tested by advertising PIPE_CAP_VERTEXID_NOBASE.
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index e93708bf964..42febe22cf8 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -598,6 +598,16 @@ static void declare_system_value( SI_PARAM_BASE_VERTEX), ""); break; + case TGSI_SEMANTIC_VERTEXID_NOBASE: + value = LLVMGetParam(radeon_bld->main_fn, + si_shader_ctx->param_vertex_id); + break; + + case TGSI_SEMANTIC_BASEVERTEX: + value = LLVMGetParam(radeon_bld->main_fn, + SI_PARAM_BASE_VERTEX); + break; + case TGSI_SEMANTIC_SAMPLEID: value = get_sample_id(radeon_bld); break; |