i965/fs: Don't emit duplicated SSBO GET_BUFFER_SIZE instruction unnecessarily.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 18 May 2016 21:17:48 +0000 (14:17 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 28 May 2016 06:29:05 +0000 (23:29 -0700)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 5135828a95194b7decbb35f784c731d7cf243bae..a23a5d3ec8b1e9c9191a92fb06187e71886b0b91 100644 (file)
@@ -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);