[Mesa-dev] [PATCH 10/24] i965/fs: Don't emit duplicated SSBO GET_BUFFER_SIZE instruction unnecessarily.

Francisco Jerez currojerez at riseup.net
Fri May 27 03:46:15 UTC 2016


---
 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 d284d4e..f49a7fe 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -3902,7 +3902,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);
-- 
2.7.3



More information about the mesa-dev mailing list