summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_screen.h
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2018-04-10 16:41:01 +0200
committerKarol Herbst <[email protected]>2019-03-17 10:33:28 +0100
commit78c5336ca9b37e59ecb3d8f44c988dc87d595b9b (patch)
tree2b65046b7b40ddbdcafc5e7d6c15001f4151062a /src/gallium/drivers/nouveau/nouveau_screen.h
parentf014ae3c7cce504afe5d3c3de154f9cf9aea0821 (diff)
nouveau: fix nir and TGSI shader cache collision
v9: rename variable to driver_flags use constants for shader cache flags Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Pierre Moreau <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_screen.h')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_screen.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_screen.h b/src/gallium/drivers/nouveau/nouveau_screen.h
index 4598d6a60e3..1302c608bec 100644
--- a/src/gallium/drivers/nouveau/nouveau_screen.h
+++ b/src/gallium/drivers/nouveau/nouveau_screen.h
@@ -17,6 +17,9 @@ extern int nouveau_mesa_debug;
struct nouveau_bo;
+#define NOUVEAU_SHADER_CACHE_FLAGS_IR_TGSI 0 << 0
+#define NOUVEAU_SHADER_CACHE_FLAGS_IR_NIR 1 << 0
+
struct nouveau_screen {
struct pipe_screen base;
struct nouveau_drm *drm;