[Mesa-dev] [PATCH 56/59] i965: Enable uploading 64-bit integer uniforms
Ian Romanick
idr at freedesktop.org
Wed Oct 26 01:00:02 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_nir_uniforms.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
index b752ad5..a45fede 100644
--- a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
+++ b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
@@ -105,7 +105,9 @@ brw_nir_setup_glsl_uniform(gl_shader_stage stage, nir_variable *var,
storage->type->matrix_columns);
unsigned vector_size = storage->type->vector_elements;
unsigned max_vector_size = 4;
- if (storage->type->base_type == GLSL_TYPE_DOUBLE) {
+ if (storage->type->base_type == GLSL_TYPE_DOUBLE ||
+ storage->type->base_type == GLSL_TYPE_UINT64 ||
+ storage->type->base_type == GLSL_TYPE_INT64) {
vector_size *= 2;
max_vector_size *= 2;
}
--
2.5.5
More information about the mesa-dev
mailing list