Skip to content
Snippets Groups Projects
Commit 68343412 authored by Eric Smith's avatar Eric Smith Committed by Eric Engestrom
Browse files

panfrost: mark separate_stencil as valid when surface is valid


panfrost_initialize_surface is called when a surface is written to,
and marks that surface as valid. If the surface is a depth buffer
with a separate stencil, that separate stencil should also be marked
as valid; otherwise, readpixel will skip reading it (and hence the
stencil data will be read as uninitialized). This only affects
DEPTH32F_STENCIL8 formats.

Cc: mesa-stable
Signed-off-by: default avatarEric R. Smith <eric.smith@collabora.com>
Reviewed-by: default avatarErik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <mesa/mesa!28738>
(cherry picked from commit c939111f)
parent 7afd8e49
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment