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:
committed by
Marge Bot
parent
2200d3c2e7
commit
b96639011c
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user