[Mesa-dev] [PATCH] i965/fs_fp: Use a null register of the appropreate width.

Jason Ekstrand jason at jlekstrand.net
Tue Sep 30 22:52:21 PDT 2014


On Sep 30, 2014 8:26 PM, "Matt Turner" <mattst88 at gmail.com> wrote:
>
> On Tue, Sep 30, 2014 at 5:49 PM, Jason Ekstrand <jason at jlekstrand.net>
wrote:
> > Signed-off-by: Jason Ekstrand <jason.ekstrand at intel.com>
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84529
> > ---
> >  src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
> > index f9eec10..aa9e17b 100644
> > --- a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
> > +++ b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
> > @@ -115,7 +115,7 @@ fs_visitor::emit_fragment_program_code()
> >  {
> >     setup_fp_regs();
> >
> > -   fs_reg null = fs_reg(brw_null_reg());
> > +   fs_reg null = fs_reg(brw_null_vec(dispatch_width));
> >
> >     /* Keep a reg with 1.0 around, for reuse by emit_fp_sop so that it
can just
> >      * be:
> > --
> > 2.1.0
>
> Replace uses of 'null' with reg_null_* that you already moved into
> fs_visitor and remove the null variable instead.

D'oh!  I forgot I was still in fs_visitor...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140930/c7c87ae1/attachment.html>


More information about the mesa-dev mailing list