mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02: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>
(cherry picked from commit 12b57b34f8)
This commit is contained in:
parent
a64edc0e3b
commit
c3952af96d
2 changed files with 2 additions and 1 deletions
|
|
@ -544,7 +544,7 @@
|
|||
"description": "gallium/util: check nr_samples in pipe_surface_equal()",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -304,6 +304,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