mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 00:30:19 +01:00
llvmpipe: rename some vars related to occlusion query and ps invocations
More consistent naming. Signed-off-by: Brian Paul <brianp@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22281>
This commit is contained in:
parent
43773fdda7
commit
3658fd6823
3 changed files with 12 additions and 12 deletions
|
|
@ -296,8 +296,8 @@ lp_jit_create_types(struct lp_fragment_shader_variant *lp)
|
|||
|
||||
elem_types[LP_JIT_THREAD_DATA_CACHE] =
|
||||
LLVMPointerType(lp_build_format_cache_type(gallivm), 0);
|
||||
elem_types[LP_JIT_THREAD_DATA_COUNTER] = LLVMInt64TypeInContext(lc);
|
||||
elem_types[LP_JIT_THREAD_DATA_INVOCATIONS] = LLVMInt64TypeInContext(lc);
|
||||
elem_types[LP_JIT_THREAD_DATA_VIS_COUNTER] = LLVMInt64TypeInContext(lc);
|
||||
elem_types[LP_JIT_THREAD_DATA_PS_INVOCATIONS] = LLVMInt64TypeInContext(lc);
|
||||
elem_types[LP_JIT_THREAD_DATA_RASTER_STATE_VIEWPORT_INDEX] =
|
||||
elem_types[LP_JIT_THREAD_DATA_RASTER_STATE_VIEW_INDEX] =
|
||||
LLVMInt32TypeInContext(lc);
|
||||
|
|
|
|||
|
|
@ -242,8 +242,8 @@ enum {
|
|||
struct lp_jit_thread_data
|
||||
{
|
||||
struct lp_build_format_cache *cache;
|
||||
uint64_t vis_counter;
|
||||
uint64_t ps_invocations;
|
||||
uint64_t vis_counter; // for occlusion query
|
||||
uint64_t ps_invocations; // pixel shader invocations
|
||||
|
||||
/*
|
||||
* Non-interpolated rasterizer state passed through to the fragment shader.
|
||||
|
|
@ -257,8 +257,8 @@ struct lp_jit_thread_data
|
|||
|
||||
enum {
|
||||
LP_JIT_THREAD_DATA_CACHE = 0,
|
||||
LP_JIT_THREAD_DATA_COUNTER,
|
||||
LP_JIT_THREAD_DATA_INVOCATIONS,
|
||||
LP_JIT_THREAD_DATA_VIS_COUNTER,
|
||||
LP_JIT_THREAD_DATA_PS_INVOCATIONS,
|
||||
LP_JIT_THREAD_DATA_RASTER_STATE_VIEWPORT_INDEX,
|
||||
LP_JIT_THREAD_DATA_RASTER_STATE_VIEW_INDEX,
|
||||
LP_JIT_THREAD_DATA_COUNT
|
||||
|
|
@ -268,11 +268,11 @@ enum {
|
|||
#define lp_jit_thread_data_cache(_gallivm, _type, _ptr) \
|
||||
lp_build_struct_get2(_gallivm, _type, _ptr, LP_JIT_THREAD_DATA_CACHE, "cache")
|
||||
|
||||
#define lp_jit_thread_data_counter(_gallivm, _type, _ptr) \
|
||||
lp_build_struct_get_ptr2(_gallivm, _type, _ptr, LP_JIT_THREAD_DATA_COUNTER, "counter")
|
||||
#define lp_jit_thread_data_vis_counter(_gallivm, _type, _ptr) \
|
||||
lp_build_struct_get_ptr2(_gallivm, _type, _ptr, LP_JIT_THREAD_DATA_VIS_COUNTER, "viscounter")
|
||||
|
||||
#define lp_jit_thread_data_invocations(_gallivm, _type, _ptr) \
|
||||
lp_build_struct_get_ptr2(_gallivm, _type, _ptr, LP_JIT_THREAD_DATA_INVOCATIONS, "invocs")
|
||||
#define lp_jit_thread_data_ps_invocations(_gallivm, _type, _ptr) \
|
||||
lp_build_struct_get_ptr2(_gallivm, _type, _ptr, LP_JIT_THREAD_DATA_PS_INVOCATIONS, "psinvocs")
|
||||
|
||||
#define lp_jit_thread_data_raster_state_viewport_index(_gallivm, _type, _ptr) \
|
||||
lp_build_struct_get2(_gallivm, _type, _ptr, \
|
||||
|
|
|
|||
|
|
@ -1347,7 +1347,7 @@ generate_fs_loop(struct gallivm_state *gallivm,
|
|||
}
|
||||
|
||||
if (key->occlusion_count) {
|
||||
LLVMValueRef counter = lp_jit_thread_data_counter(gallivm, thread_data_type, thread_data_ptr);
|
||||
LLVMValueRef counter = lp_jit_thread_data_vis_counter(gallivm, thread_data_type, thread_data_ptr);
|
||||
lp_build_name(counter, "counter");
|
||||
|
||||
lp_build_occlusion_count(gallivm, type,
|
||||
|
|
@ -3268,7 +3268,7 @@ generate_fragment(struct llvmpipe_context *lp,
|
|||
if (shader->info.base.num_instructions > 1) {
|
||||
LLVMValueRef invocs, val;
|
||||
LLVMTypeRef invocs_type = LLVMInt64TypeInContext(gallivm->context);
|
||||
invocs = lp_jit_thread_data_invocations(gallivm, variant->jit_thread_data_type, thread_data_ptr);
|
||||
invocs = lp_jit_thread_data_ps_invocations(gallivm, variant->jit_thread_data_type, thread_data_ptr);
|
||||
val = LLVMBuildLoad2(builder, invocs_type, invocs, "");
|
||||
val = LLVMBuildAdd(builder, val,
|
||||
LLVMConstInt(LLVMInt64TypeInContext(gallivm->context),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue