From: Ian Romanick Date: Thu, 1 Sep 2016 19:06:09 +0000 (-0700) Subject: i965: Enable ARB_gpu_shader_int64 on Gen8+ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db6d23cfd22fbe41e7e7de558c987c065e5f3e15;p=mesa.git i965: Enable ARB_gpu_shader_int64 on Gen8+ Signed-off-by: Ian Romanick Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp index 4159756fc5d..977feb37fc2 100644 --- a/src/mesa/drivers/dri/i965/brw_link.cpp +++ b/src/mesa/drivers/dri/i965/brw_link.cpp @@ -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. diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index b674b2f494c..f1290bf7b49 100644 --- a/src/mesa/drivers/dri/i965/intel_extensions.c +++ b/src/mesa/drivers/dri/i965/intel_extensions.c @@ -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; }