From 29e471725115edf941458c5be0bb7e93218ddd0f Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Wed, 18 May 2016 14:17:48 -0700 Subject: i965/fs: Don't emit duplicated SSBO GET_BUFFER_SIZE instruction unnecessarily. Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 5135828a951..a23a5d3ec8b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -3871,7 +3871,6 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr inst->header_size = 0; inst->mlen = mlen; inst->regs_written = regs_written; - bld.emit(inst); bld.MOV(retype(dest, buffer_size.type), buffer_size); brw_mark_surface_used(prog_data, index); -- cgit v1.2.3