From: Ian Romanick Date: Thu, 1 Sep 2016 19:06:09 +0000 (-0700) Subject: i965: Enable ARB_gpu_shader_int64 on Gen8+ X-Git-Tag: upstream/17.1.0~2871 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db6d23cfd22fbe41e7e7de558c987c065e5f3e15;p=platform%2Fupstream%2Fmesa.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 4159756..977feb3 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 b674b2f..f1290bf 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; }