mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 01:40:14 +01:00
pan: use translate_s_format for stencil
While this was also using translate_zs_format() before the commit in
question, that's didn't lead to any real issues, because only a single
value was legal here before. While it's not entirely in-spec to use
other values, it seems the HW doesn't mind.
But when this logic was reworked, the typed field was used instead. This
lead to a compiler warning on Clang.
Let's correct this properly here, rather than papering over the compiler
warning.
Fixes: 7a763bb0a3 ("pan/genxml: Rework the RT/ZS emission logic")
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Tested-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Eric R. Smith <eric.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36606>
This commit is contained in:
parent
30cc9f5b3d
commit
0dcf510c05
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ GENX(pan_emit_afbc_s_attachment)(const struct pan_fb_info *fb,
|
|||
&body_offset, &hdr_row_stride);
|
||||
pan_cast_and_pack(payload, AFBC_S_TARGET, cfg) {
|
||||
cfg.msaa = mali_sampling_mode(s);
|
||||
cfg.write_format = translate_zs_format(s->format);
|
||||
cfg.write_format = translate_s_format(s->format);
|
||||
cfg.block_format = get_afbc_block_format(pref.image->props.modifier);
|
||||
cfg.header = header;
|
||||
cfg.body_offset = body_offset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue