[Mesa-dev] [PATCH] i965/fs: Remove dead code from generate_uniform_pull_constant_load_gen7.

Eric Anholt eric at anholt.net
Mon Jan 7 13:02:52 PST 2013


Kenneth Graunke <kenneth at whitecape.org> writes:

> generate_uniform_pull_constant_load_gen7() is only called on Gen7+, so
> the gen < 6 code is dead.
> ---
>  src/mesa/drivers/dri/i965/brw_fs_emit.cpp | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
> index 63f09fe..3059934 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
> @@ -687,8 +687,6 @@ fs_generator::generate_uniform_pull_constant_load_gen7(fs_inst *inst,
>  
>     brw_set_dest(p, send, dst);
>     brw_set_src0(p, send, offset);
> -   if (intel->gen < 6)
> -      send->header.destreg__conditionalmod = inst->base_mrf;

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130107/4d4db307/attachment.pgp>


More information about the mesa-dev mailing list