[Mesa-dev] [PATCH 2/2] i965: Fix regs read for FS_OPCODE_INTERP_PER_SLOT_OFFSET

Jason Ekstrand jason at jlekstrand.net
Sat Dec 6 13:28:57 PST 2014


Both patches
Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>

On Sat, Dec 6, 2014 at 1:18 PM, Chris Forbes <chrisf at ijw.co.nz> wrote:

> Dead code elimination was eating the Y offset.
>
> Fixes the piglit test:
> spec/ARB_gpu_shader5/arb_gpu_shader5-interpolateAtOffset-nonconst
>
> Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
> ---
>  src/mesa/drivers/dri/i965/brw_fs.cpp | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp
> b/src/mesa/drivers/dri/i965/brw_fs.cpp
> index 37857e9..389c8ae 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
> @@ -902,6 +902,8 @@ fs_inst::regs_read(fs_visitor *v, int arg) const
>        return mlen;
>     } else if (opcode == SHADER_OPCODE_UNTYPED_SURFACE_READ && arg == 0) {
>        return mlen;
> +   } else if (opcode == FS_OPCODE_INTERPOLATE_AT_PER_SLOT_OFFSET && arg
> == 0) {
> +      return mlen;
>     }
>
>     switch (src[arg].file) {
> --
> 2.1.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141206/057a259c/attachment.html>


More information about the mesa-dev mailing list