#include "compiler/nir/nir.h"
/**
- * Disable auxiliary buffers if a renderbuffer is also bound as a texture
- * or shader image. This causes a self-dependency, where both rendering
- * and sampling may concurrently read or write the CCS buffer, causing
- * incorrect pixels.
+ * Disable auxiliary buffers if a renderbuffer is also bound as a texture.
+ * This causes a self-dependency, where both rendering and sampling may
+ * concurrently read or write the CCS buffer, causing incorrect pixels.
*/
static bool
disable_rb_aux_buffer(struct iris_context *ice,
resolve_image_views(struct iris_context *ice,
struct iris_batch *batch,
struct iris_shader_state *shs,
- const struct shader_info *info,
- bool *draw_aux_buffer_disabled,
- bool consider_framebuffer)
+ const struct shader_info *info)
{
if (info == NULL)
return;
struct iris_resource *res = (void *) pview->resource;
if (res->base.b.target != PIPE_BUFFER) {
- if (consider_framebuffer) {
- disable_rb_aux_buffer(ice, draw_aux_buffer_disabled,
- res, pview->u.tex.level, 1,
- "as a shader image");
- }
-
unsigned num_layers =
pview->u.tex.last_layer - pview->u.tex.first_layer + 1;
if (ice->state.stage_dirty & stage_dirty) {
resolve_sampler_views(ice, batch, shs, info, draw_aux_buffer_disabled,
consider_framebuffer);
- resolve_image_views(ice, batch, shs, info, draw_aux_buffer_disabled,
- consider_framebuffer);
+ resolve_image_views(ice, batch, shs, info);
}
}