Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13723>
desc.sampler_index_or_mode = instr->sampler_index;
desc.index = instr->texture_index;
} else {
- enum bifrost_index mode = 0;
+ unsigned mode = 0;
if (direct && instr->sampler_index == instr->texture_index) {
mode = BIFROST_INDEX_IMMEDIATE_SHARED;
mode = BIFROST_INDEX_REGISTER;
}
- desc.sampler_index_or_mode = mode | (0x3 << 2);
+ mode |= (BIFROST_TEXTURE_OPERATION_SINGLE << 2);
+ desc.sampler_index_or_mode = mode;
}
/* Allocate staging registers contiguously by compacting the array.