i965/skl: In opt_sampler_eot always set destination register to null
authorNeil Roberts <neil@linux.intel.com>
Thu, 7 May 2015 13:20:17 +0000 (14:20 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 8 May 2015 11:40:22 +0000 (12:40 +0100)
commite51bad669a4c42845c44a925bbb5d8885799c28f
treea46e98d2c1d2083d28e93a91c44b7f5ba7408a49
parent1c5de556c5972c3020b4095c586a9b439b20cf69
i965/skl: In opt_sampler_eot always set destination register to null

opt_sampler_eot enables a direct write to framebuffer from a sample.
In order to do this the sample message needs to have a message header
so if there wasn't one already then the function adds one. In addition
the function sets the destination register to null because it's no
longer used. However it was only doing this in cases where it was
adding a message header. This patch just moves setting the destination
so that it happens even if there's a messge header. In practice this
doesn't seem to make any difference but it's a bit cleaner.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp