From: Francisco Jerez Date: Wed, 18 May 2016 21:17:48 +0000 (-0700) Subject: i965/fs: Don't emit duplicated SSBO GET_BUFFER_SIZE instruction unnecessarily. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29e471725115edf941458c5be0bb7e93218ddd0f;p=mesa.git i965/fs: Don't emit duplicated SSBO GET_BUFFER_SIZE instruction unnecessarily. Reviewed-by: Jason Ekstrand --- 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);