v3dv: initial CreateGraphicsPipeline/DestroyPipeline implementation

The basic to get the spirv built to nir, including calling some common
nir passes. Pending deep review if all those are needed or if we miss
some, but for that it would be better to be able to run existing
tests.

Enough to get assembly generated for simple tests.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Alejandro Piñeiro
2019-12-02 13:59:04 +01:00
committed by Marge Bot
parent 6cb24a3b39
commit 60145629a2
6 changed files with 767 additions and 2 deletions
+1
View File
@@ -57,6 +57,7 @@ static const struct debug_control debug_control[] = {
{ "always_flush", V3D_DEBUG_ALWAYS_FLUSH},
{ "precompile", V3D_DEBUG_PRECOMPILE},
{ "ra", V3D_DEBUG_RA},
{ "dump_spirv", V3D_DEBUG_DUMP_SPIRV},
{ NULL, 0 }
};
+1
View File
@@ -58,6 +58,7 @@ extern uint32_t V3D_DEBUG;
#define V3D_DEBUG_CLIF (1 << 14)
#define V3D_DEBUG_PRECOMPILE (1 << 15)
#define V3D_DEBUG_RA (1 << 16)
#define V3D_DEBUG_DUMP_SPIRV (1 << 17)
#ifdef HAVE_ANDROID_PLATFORM
#define LOG_TAG "BROADCOM-MESA"