mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
gallium/util: check nr_samples in pipe_surface_equal()
this is otherwise broken cc: mesa-stable Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34367>
This commit is contained in:
parent
a530890e75
commit
12b57b34f8
1 changed files with 1 additions and 0 deletions
|
|
@ -426,6 +426,7 @@ pipe_surface_equal(struct pipe_surface *s1, struct pipe_surface *s2)
|
|||
{
|
||||
return s1->texture == s2->texture &&
|
||||
s1->format == s2->format &&
|
||||
s1->nr_samples == s2->nr_samples &&
|
||||
(s1->texture->target != PIPE_BUFFER ||
|
||||
(s1->u.buf.first_element == s2->u.buf.first_element &&
|
||||
s1->u.buf.last_element == s2->u.buf.last_element)) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue