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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to