i965: Enable ARB_gpu_shader_int64 on Gen8+
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 1 Sep 2016 19:06:09 +0000 (12:06 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Jan 2017 23:41:23 +0000 (15:41 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/intel_extensions.c

index 4159756fc5da24acb04c2e34152c50cf88c14d44..977feb37fc2f5768cbf3246ea5678b5cfb856b5a 100644 (file)
@@ -120,6 +120,11 @@ process_glsl_ir(struct brw_context *brw,
    }
 
    lower_instructions(shader->ir, instructions_to_lower);
+   lower_64bit_integer_instructions(shader->ir,
+                                    MUL64 |
+                                    DIV64 |
+                                    MOD64 |
+                                    SIGN64);
 
    /* Pre-gen6 HW can only nest if-statements 16 deep.  Beyond this,
     * if-statements need to be flattened.
index b674b2f494cfb9070d9dafceca45bb47891d62c9..f1290bf7b4943fec9009830362e0314a8c8d637d 100644 (file)
@@ -264,6 +264,7 @@ intelInitExtensions(struct gl_context *ctx)
    }
 
    if (brw->gen >= 8) {
+      ctx->Extensions.ARB_gpu_shader_int64 = true;
       ctx->Extensions.ARB_ES3_2_compatibility = true;
    }