i965/vec4: Use the right number of UBOs
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 15 Oct 2015 06:48:03 +0000 (08:48 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 16 Oct 2015 08:12:44 +0000 (10:12 +0200)
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp

index 0025f3647a1b0570bf260d203de8c4a7d2084f6b..ea1e3e7bbcfb84bddc201b54e00722962f4248cf 100644 (file)
@@ -765,7 +765,7 @@ vec4_visitor::nir_emit_intrinsic(nir_intrinsic_instr *instr)
           */
          brw_mark_surface_used(&prog_data->base,
                                prog_data->base.binding_table.ubo_start +
-                               nir->info.num_ssbos - 1);
+                               nir->info.num_ubos - 1);
       }
 
       unsigned const_offset = instr->const_index[0];