mesa/src
Kenneth Graunke 760c6777a0 i965/fs: Drop the emit(fs_inst) overload.
Using this emit function implicitly creates three copies, which
is pointlessly inefficient.

1. Code creates the original instruction.
2. Calling emit(fs_inst) copies it into the function.
3. It then allocates a new fs_inst and copies it into that.

The second could be eliminated by changing the signature to

   fs_inst(const fs_inst &)

but that wouldn't eliminate the third.  Making callers heap allocate the
instruction and call emit(fs_inst *) allows us to just use the original
one, with no extra copies, and isn't much more of a burden.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2014-02-21 22:51:33 -08:00
..
egl egl: clarify what _eglInitResource does 2014-02-19 13:08:54 +08:00
gallium libgl-xlib: Fix xlib_sw_winsys.h include path. 2014-02-21 19:56:17 -08:00
gbm automake: remove leftover XORG and LIBKMS variables 2014-02-18 00:08:03 +00:00
getopt
glsl glsl/sso: Add parser and AST-to-HIR support for separate shader object layouts 2014-02-21 15:41:02 -08:00
glx glx: Add missing null check in __glX_send_client_info() 2014-02-07 08:14:05 -07:00
gtest gtest: enable subdir-objects to prevent automake warnings 2013-11-16 14:01:27 +00:00
hgl haiku libGL: Move from gallium target to src/hgl 2014-01-06 15:50:21 -06:00
loader dri: Add a useful error message if someone's packages missed libudev deps. 2014-02-01 10:09:11 -08:00
mapi mesa/sso: Change CreateShaderProgramv return type from uint to GLuint. 2014-02-21 18:05:40 -08:00
mesa i965/fs: Drop the emit(fs_inst) overload. 2014-02-21 22:51:33 -08:00
Makefile.am loader: introduce the loader util lib 2014-01-18 18:47:27 +00:00
SConscript loader: introduce the loader util lib 2014-01-18 18:47:27 +00:00