iris: be sure to skip buffers in resolve code
Buffers don't have ISL surfaces, and this can get us into trouble.
This commit is contained in:
@@ -94,6 +94,9 @@ resolve_sampler_views(struct iris_context *ice,
|
||||
struct iris_sampler_view *isv = shs->textures[i];
|
||||
struct iris_resource *res = (void *) isv->base.texture;
|
||||
|
||||
if (res->base.target == PIPE_BUFFER)
|
||||
continue;
|
||||
|
||||
if (batch->name != IRIS_BATCH_COMPUTE) {
|
||||
disable_rb_aux_buffer(ice, draw_aux_buffer_disabled,
|
||||
res, isv->view.base_level, isv->view.levels,
|
||||
@@ -122,6 +125,9 @@ resolve_image_views(struct iris_context *ice,
|
||||
const int i = u_bit_scan(&views);
|
||||
struct iris_resource *res = (void *) shs->image[i].res;
|
||||
|
||||
if (res->base.target == PIPE_BUFFER)
|
||||
continue;
|
||||
|
||||
if (batch->name != IRIS_BATCH_COMPUTE) {
|
||||
disable_rb_aux_buffer(ice, draw_aux_buffer_disabled,
|
||||
res, 0, ~0, "as a shader image");
|
||||
|
||||
Reference in New Issue
Block a user