mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 04:40:11 +01:00
aco: fix a hardware bug for MRTZ exports on GFX6
GFX6 (except OLAND and HAINAN) has a bug that it only looks at the X writemask component. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3533>
This commit is contained in:
parent
f55e215b8c
commit
b9cc50fbce
1 changed files with 9 additions and 0 deletions
|
|
@ -8364,6 +8364,15 @@ static void export_fs_mrt_z(isel_context *ctx)
|
|||
}
|
||||
}
|
||||
|
||||
/* GFX6 (except OLAND and HAINAN) has a bug that it only looks at the X
|
||||
* writemask component.
|
||||
*/
|
||||
if (ctx->options->chip_class == GFX6 &&
|
||||
ctx->options->family != CHIP_OLAND &&
|
||||
ctx->options->family != CHIP_HAINAN) {
|
||||
enabled_channels |= 0x1;
|
||||
}
|
||||
|
||||
bld.exp(aco_opcode::exp, values[0], values[1], values[2], values[3],
|
||||
enabled_channels, V_008DFC_SQ_EXP_MRTZ, compr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue