diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-13 15:04:47 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-01 15:46:23 +0000 |
commit | 19b4e586f62eb054bf1dc2f828d5b73abae6a7c7 (patch) | |
tree | b82699f8d22660b9b02401e067ba6118a7589657 /src/gallium/drivers | |
parent | 4c286cc0a2146a6ab3e8be278c4c27226b6ff990 (diff) |
panfrost: Switch to pan_lower_framebuffer
It now supports what we need.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5265>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_blend_shaders.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_blend_shaders.c b/src/gallium/drivers/panfrost/pan_blend_shaders.c index 079080879a9..f30ddb14056 100644 --- a/src/gallium/drivers/panfrost/pan_blend_shaders.c +++ b/src/gallium/drivers/panfrost/pan_blend_shaders.c @@ -28,6 +28,7 @@ #include "midgard/midgard_compile.h" #include "compiler/nir/nir_builder.h" #include "nir/nir_lower_blend.h" +#include "panfrost/util/pan_lower_framebuffer.h" #include "gallium/auxiliary/util/u_blend.h" #include "util/u_memory.h" @@ -168,7 +169,10 @@ panfrost_compile_blend_shader( NIR_PASS_V(shader, nir_lower_blend, options); - NIR_PASS_V(shader, nir_lower_framebuffer, format, dev->gpu_id); + const struct util_format_description *format_desc = + util_format_description(format); + + NIR_PASS_V(shader, pan_lower_framebuffer, format_desc, dev->quirks); /* Compile the built shader */ |