mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-13 12:00:17 +01:00
radeonsi: add an assertion that only two-dimensional constant references are used
v2: remove some redundant checks Acked-by: Roland Scheidegger <sroland@vmware.com> (v1) Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> (v1) Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
3e4dff4f00
commit
30a2f0dfd4
1 changed files with 3 additions and 2 deletions
|
|
@ -1851,10 +1851,11 @@ static LLVMValueRef fetch_constant(
|
|||
return lp_build_gather_values(&ctx->gallivm, values, 4);
|
||||
}
|
||||
|
||||
buf = reg->Register.Dimension ? reg->Dimension.Index : 0;
|
||||
assert(reg->Register.Dimension);
|
||||
buf = reg->Dimension.Index;
|
||||
idx = reg->Register.Index * 4 + swizzle;
|
||||
|
||||
if (reg->Register.Dimension && reg->Dimension.Indirect) {
|
||||
if (reg->Dimension.Indirect) {
|
||||
LLVMValueRef ptr = LLVMGetParam(ctx->main_fn, ctx->param_const_and_shader_buffers);
|
||||
LLVMValueRef index;
|
||||
index = si_get_bounded_indirect_index(ctx, ®->DimIndirect,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue