i965: Enable uploading 64-bit integer uniforms
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 3 Sep 2016 01:50:49 +0000 (18:50 -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_nir_uniforms.cpp

index a2e0001e1a361db4ba6413d41c316cf10ca6f747..447998bbe2252c1c021cbdc93f3c815026819a47 100644 (file)
@@ -106,7 +106,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;
             if (vector_size > 4)
                max_vector_size = 8;