mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 09:40:08 +01:00
pan/bi: Handle info.fs.untyped_color_outputs on Valhall
Colour outputs in TGSI are untyped so we have to ignore the register format on the store_output. Luckily, Valhall gives us the auto32 escape hatch to deal with it, and Bifrost doesn't care anyway. This will avoid regressions from native int output without corrupting the compiler for GLSL and SPIR-V shaders that are well-typed. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17841>
This commit is contained in:
parent
394e1f5862
commit
cf55e05f8f
1 changed files with 4 additions and 0 deletions
|
|
@ -770,6 +770,10 @@ bi_emit_blend_op(bi_builder *b, bi_index rgba, nir_alu_type T,
|
|||
uint64_t blend_desc = inputs->blend.bifrost_blend_desc;
|
||||
enum bi_register_format regfmt = bi_reg_fmt_for_nir(T);
|
||||
|
||||
/* Workaround for NIR-to-TGSI */
|
||||
if (b->shader->nir->info.fs.untyped_color_outputs)
|
||||
regfmt = BI_REGISTER_FORMAT_AUTO;
|
||||
|
||||
if (inputs->is_blend && inputs->blend.nr_samples > 1) {
|
||||
/* Conversion descriptor comes from the compile inputs, pixel
|
||||
* indices derived at run time based on sample ID */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue