mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02: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> (cherry picked from commit0dcf510c05)
This commit is contained in:
parent
43fd1b7663
commit
f4b4191f1c
2 changed files with 2 additions and 2 deletions
|
|
@ -634,7 +634,7 @@
|
|||
"description": "pan: use translate_s_format for stencil",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "7a763bb0a3b1cb48dce03a62fff2fe9eac3f0eaf",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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