[Mesa-dev] [PATCH 59/59] i965: Enable ARB_gpu_shader_int64 on Gen8+
Ian Romanick
idr at freedesktop.org
Wed Oct 26 01:00:05 UTC 2016
From: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/drivers/dri/i965/brw_link.cpp | 5 +++++
src/mesa/drivers/dri/i965/intel_extensions.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp
index 5ea9773..df278de 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 66079b5..ff00efd 100644
--- a/src/mesa/drivers/dri/i965/intel_extensions.c
+++ b/src/mesa/drivers/dri/i965/intel_extensions.c
@@ -400,6 +400,7 @@ intelInitExtensions(struct gl_context *ctx)
if (brw->gen >= 8) {
ctx->Extensions.ARB_gpu_shader_fp64 = true;
+ ctx->Extensions.ARB_gpu_shader_int64 = true;
ctx->Extensions.ARB_shader_precision = true;
ctx->Extensions.ARB_vertex_attrib_64bit = true;
ctx->Extensions.ARB_ES3_2_compatibility = true;
--
2.5.5
More information about the mesa-dev
mailing list