mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
zink: return false for implicit feedback loop check with image binds
this can only be GENERAL layout so it's not a feedback loop ever Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20891>
This commit is contained in:
parent
bdaded5a18
commit
d791e9a77d
1 changed files with 2 additions and 1 deletions
|
|
@ -5143,7 +5143,8 @@ zink_tc_context_unwrap(struct pipe_context *pctx, bool threaded)
|
|||
static bool
|
||||
add_implicit_color_feedback_loop(struct zink_context *ctx, struct zink_resource *res)
|
||||
{
|
||||
if (!res->fb_bind_count || !res->sampler_bind_count[0])
|
||||
/* can only feedback loop with fb+sampler bind; image bind must be GENERAL */
|
||||
if (!res->fb_bind_count || !res->sampler_bind_count[0] || res->image_bind_count[0])
|
||||
return false;
|
||||
bool is_feedback = false;
|
||||
/* avoid false positives when a texture is bound but not used */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue