i965/fs: use the right number of UBOs
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 15 Oct 2015 06:47:40 +0000 (08:47 +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_fs_nir.cpp

index 0e044d01f1e3b90b28dd1c54167ae0f4d99ffaaa..792663f2644821d64aeb5ed90093ee298500e543 100644 (file)
@@ -1432,7 +1432,7 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr
           */
          brw_mark_surface_used(prog_data,
                                stage_prog_data->binding_table.ubo_start +
-                               nir->info.num_ssbos - 1);
+                               nir->info.num_ubos - 1);
       }
 
       if (has_indirect) {