diff options
author | Marek Olšák <[email protected]> | 2016-09-13 13:28:09 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-09-14 12:32:59 +0200 |
commit | 5f0a8fbcc87ef6bc1121ecdbcda0c5e82f585295 (patch) | |
tree | 362ddb8fc2fb8e99aa3a52cefa59d5a6bead2925 | |
parent | afaf27bff3646f63aa9de85c826e1da100afc993 (diff) |
radeonsi: cosmetic changes in si_shader.c
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index d61f4ff7172..db7eb4e6b3b 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -105,8 +105,8 @@ struct si_shader_context unsigned uniform_md_kind; LLVMValueRef empty_md; + /* Preloaded descriptors. */ LLVMValueRef const_buffers[SI_NUM_CONST_BUFFERS]; - LLVMValueRef lds; LLVMValueRef shader_buffers[SI_NUM_SHADER_BUFFERS]; LLVMValueRef sampler_views[SI_NUM_SAMPLERS]; LLVMValueRef sampler_states[SI_NUM_SAMPLERS]; @@ -114,6 +114,8 @@ struct si_shader_context LLVMValueRef images[SI_NUM_IMAGES]; LLVMValueRef esgs_ring; LLVMValueRef gsvs_ring[4]; + + LLVMValueRef lds; LLVMValueRef gs_next_vertex[4]; LLVMValueRef return_value; @@ -5843,7 +5845,7 @@ static void create_function(struct si_shader_context *ctx) declare_tess_lds(ctx); } -static void preload_constants(struct si_shader_context *ctx) +static void preload_constant_buffers(struct si_shader_context *ctx) { struct lp_build_tgsi_context *bld_base = &ctx->radeon_bld.soa.bld_base; struct gallivm_state *gallivm = bld_base->base.gallivm; @@ -6777,7 +6779,7 @@ int si_compile_tgsi_shader(struct si_screen *sscreen, create_meta_data(&ctx); create_function(&ctx); - preload_constants(&ctx); + preload_constant_buffers(&ctx); preload_shader_buffers(&ctx); preload_samplers(&ctx); preload_images(&ctx); |