mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
nouveau/codegen: Don't convertSurfaceFormat for unknown formats
Without this and the previous patch, it would see PIPE_FORMAT_NONE as a zero-component format and delete the whole load. Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24327>
This commit is contained in:
parent
2200d3c2e7
commit
b96639011c
1 changed files with 3 additions and 3 deletions
|
|
@ -2360,7 +2360,7 @@ NVC0LoweringPass::handleSurfaceOpNVE4(TexInstruction *su)
|
|||
{
|
||||
processSurfaceCoordsNVE4(su);
|
||||
|
||||
if (su->op == OP_SULDP) {
|
||||
if (su->op == OP_SULDP && su->tex.format) {
|
||||
convertSurfaceFormat(su, NULL);
|
||||
insertOOBSurfaceOpResult(su);
|
||||
}
|
||||
|
|
@ -2561,7 +2561,7 @@ NVC0LoweringPass::handleSurfaceOpNVC0(TexInstruction *su)
|
|||
|
||||
processSurfaceCoordsNVC0(su);
|
||||
|
||||
if (su->op == OP_SULDP) {
|
||||
if (su->op == OP_SULDP && su->tex.format) {
|
||||
convertSurfaceFormat(su, NULL);
|
||||
insertOOBSurfaceOpResult(su);
|
||||
}
|
||||
|
|
@ -2767,7 +2767,7 @@ NVC0LoweringPass::handleSurfaceOpGM107(TexInstruction *su)
|
|||
Instruction *loaded[4] = {};
|
||||
TexInstruction *su2 = processSurfaceCoordsGM107(su, loaded);
|
||||
|
||||
if (su->op == OP_SULDP) {
|
||||
if (su->op == OP_SULDP && su->tex.format) {
|
||||
convertSurfaceFormat(su, loaded);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue