mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
panfrost: Use track_image_access on Bifrost
Equivalent logic, as previously extracted. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15797>
This commit is contained in:
parent
8689a88d10
commit
b5026c3d7c
1 changed files with 1 additions and 13 deletions
|
|
@ -1808,19 +1808,7 @@ emit_image_bufs(struct panfrost_batch *batch, enum pipe_shader_type shader,
|
|||
is_3d ? 0 : image->u.tex.first_layer,
|
||||
is_3d ? image->u.tex.first_layer : 0);
|
||||
|
||||
if (image->shader_access & PIPE_IMAGE_ACCESS_WRITE) {
|
||||
panfrost_batch_write_rsrc(batch, rsrc, shader);
|
||||
|
||||
unsigned level = is_buffer ? 0 : image->u.tex.level;
|
||||
BITSET_SET(rsrc->valid.data, level);
|
||||
|
||||
if (is_buffer) {
|
||||
util_range_add(&rsrc->base, &rsrc->valid_buffer_range,
|
||||
0, rsrc->base.width0);
|
||||
}
|
||||
} else {
|
||||
panfrost_batch_read_rsrc(batch, rsrc, shader);
|
||||
}
|
||||
panfrost_track_image_access(batch, shader, image);
|
||||
|
||||
pan_pack(bufs + (i * 2), ATTRIBUTE_BUFFER, cfg) {
|
||||
cfg.type = pan_modifier_to_attr_type(rsrc->image.layout.modifier);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue