[Mesa-dev] [PATCH] i965/fs: Set correct number of regs_written for MCS fetches.

Kenneth Graunke kenneth at whitecape.org
Tue May 27 22:11:00 PDT 2014


On 05/27/2014 03:27 PM, Matt Turner wrote:
> regs_written is in units of virtual GRFs.
> ---
>  src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
> index 171f063..b51ecc1 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
> @@ -1578,9 +1578,9 @@ fs_visitor::emit_mcs_fetch(ir_texture *ir, fs_reg coordinate, int sampler)
>     inst->base_mrf = -1;
>     inst->mlen = next.reg_offset * reg_width;
>     inst->header_present = false;
> -   inst->regs_written = 4 * reg_width; /* we only care about one reg of response,
> -                                        * but the sampler always writes 4/8
> -                                        */
> +   inst->regs_written = 4; /* we only care about one reg of response,
> +                            * but the sampler always writes 4/8
> +                            */
>     inst->sampler = sampler;
>  
>     return dest;
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140527/001501af/attachment.sig>


More information about the mesa-dev mailing list