mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
anv/cmd_buffer: Use anv_descriptor_for_binding for samplers
Tested-by: Józef Kucia <joseph.kucia@gmail.com> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Cc: "18.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
b9e1ca16f8
commit
31b2144c83
1 changed files with 2 additions and 4 deletions
|
|
@ -1752,10 +1752,8 @@ emit_samplers(struct anv_cmd_buffer *cmd_buffer,
|
|||
|
||||
for (uint32_t s = 0; s < map->sampler_count; s++) {
|
||||
struct anv_pipeline_binding *binding = &map->sampler_to_descriptor[s];
|
||||
struct anv_descriptor_set *set =
|
||||
cmd_buffer->state.descriptors[binding->set];
|
||||
uint32_t offset = set->layout->binding[binding->binding].descriptor_index;
|
||||
struct anv_descriptor *desc = &set->descriptors[offset + binding->index];
|
||||
const struct anv_descriptor *desc =
|
||||
anv_descriptor_for_binding(cmd_buffer, binding);
|
||||
|
||||
if (desc->type != VK_DESCRIPTOR_TYPE_SAMPLER &&
|
||||
desc->type != VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue