nir/spirv: Use the new bare sampler type
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Thu, 25 Feb 2016 00:10:08 +0000 (16:10 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sun, 28 Feb 2016 19:24:05 +0000 (11:24 -0800)
src/compiler/nir/spirv/spirv_to_nir.c

index cb069b93ae852a894eacefc5d86a4aa96f75d87c..5a7184acac674670a10d5c977dce5e2728a80fff 100644 (file)
@@ -769,12 +769,8 @@ vtn_handle_type(struct vtn_builder *b, SpvOp opcode,
        * thrown away the moment you combine it with an image.  What really
        * matters is that it's a sampler type as opposed to an integer type
        * so the backend knows what to do.
-       *
-       * TODO: Eventually we should consider adding a "bare sampler" type
-       * to glsl_types.
        */
-      val->type->type = glsl_sampler_type(GLSL_SAMPLER_DIM_2D, false, false,
-                                          GLSL_TYPE_FLOAT);
+      val->type->type = glsl_bare_sampler_type();
       break;
 
    case SpvOpTypeOpaque: