projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d4368b
)
panfrost: Respect early-Z force on Midgard
author
Alyssa Rosenzweig
<alyssa@collabora.com>
Fri, 4 Jun 2021 18:55:14 +0000
(14:55 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Thu, 10 Jun 2021 18:06:10 +0000
(18:06 +0000)
Fixes dEQP-GLES31.functional.image_load_store.early_fragment_tests.* on
Midgard.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
src/panfrost/lib/pan_shader.h
patch
|
blob
|
history
diff --git
a/src/panfrost/lib/pan_shader.h
b/src/panfrost/lib/pan_shader.h
index
f5889ee
..
612810e
100644
(file)
--- a/
src/panfrost/lib/pan_shader.h
+++ b/
src/panfrost/lib/pan_shader.h
@@
-60,6
+60,10
@@
pan_shader_prepare_midgard_rsd(const struct pan_shader_info *info,
} else {
rsd->properties.midgard.shader_reads_tilebuffer =
info->fs.outputs_read;
+
+ /* However, forcing early-z in the shader overrides draw-time */
+ rsd->properties.midgard.force_early_z =
+ info->fs.early_fragment_tests;
}
}