panfrost: Move the blend lowering code out of the gallium driver
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 9 Feb 2021 17:06:59 +0000 (18:06 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Feb 2021 11:23:46 +0000 (11:23 +0000)
Will be used by the pan_blend library.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8963>

src/gallium/drivers/panfrost/Makefile.sources
src/gallium/drivers/panfrost/meson.build
src/gallium/drivers/panfrost/pan_blend_shaders.c
src/panfrost/Makefile.sources
src/panfrost/util/meson.build
src/panfrost/util/nir_lower_blend.c [moved from src/gallium/drivers/panfrost/nir/nir_lower_blend.c with 100% similarity]
src/panfrost/util/nir_lower_blend.h [moved from src/gallium/drivers/panfrost/nir/nir_lower_blend.h with 100% similarity]

index 145959a..d858d47 100644 (file)
@@ -1,7 +1,4 @@
 C_SOURCES := \
-       nir/nir_lower_blend.c \
-       nir/nir_lower_blend.h \
-    \
        pan_assemble.c \
        pan_blend_cso.c \
        pan_blend_cso.h \
index 36da44c..66647c9 100644 (file)
@@ -25,9 +25,6 @@ files_panfrost = files(
   'pan_screen.h',
   'pan_resource.c',
   'pan_resource.h',
-
-  'nir/nir_lower_blend.c',
-
   'pan_context.c',
   'pan_blit.c',
   'pan_job.c',
index 21a4a27..4d0166e 100644 (file)
@@ -29,7 +29,7 @@
 #include "pan_util.h"
 #include "panfrost-quirks.h"
 #include "compiler/nir/nir_builder.h"
-#include "nir/nir_lower_blend.h"
+#include "panfrost/util/nir_lower_blend.h"
 #include "panfrost/util/pan_lower_framebuffer.h"
 #include "gallium/auxiliary/util/u_blend.h"
 #include "util/u_memory.h"
index 71fc9b5..fcf9682 100644 (file)
@@ -98,6 +98,8 @@ shared_FILES := \
 util_FILES := \
         util/lcra.c \
         util/lcra.h \
+        util/nir_lower_blend.c \
+        util/nir_lower_blend.h \
         util/nir_mod_helpers.c \
         util/pan_ir.c \
         util/pan_ir.h \
index 75f9024..23110d7 100644 (file)
@@ -22,6 +22,7 @@
 libpanfrost_util_files = files(
   'lcra.c',
   'lcra.h',
+  'nir_lower_blend.c',
   'nir_mod_helpers.c',
   'pan_ir.c',
   'pan_ir.h',