[Mesa-dev] [PATCH shader-db 2/3] intel_stub: Pretend to support command parser version 9.

Kenneth Graunke kenneth at whitecape.org
Thu May 4 02:44:22 UTC 2017


Haswell requires a relatively new command parser version to enable
GL 4.5, and we'd like to compile those shaders.  Since we don't actually
execute anything, it doesn't really matter.  Claim version 9, the
current version.
---
 intel_stub.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/intel_stub.c b/intel_stub.c
index 7f85678..bbaceb4 100644
--- a/intel_stub.c
+++ b/intel_stub.c
@@ -200,6 +200,9 @@ ioctl(int fd, unsigned long request, ...)
                         case I915_PARAM_CHIPSET_ID:
                                 *getparam->value = strtod(getenv("INTEL_DEVID_OVERRIDE"), NULL);
                                 break;
+                        case I915_PARAM_CMD_PARSER_VERSION:
+                                *getparam->value = 9;
+                                break;
 			}
 
                         return 0;
-- 
2.12.2



More information about the mesa-dev mailing list