From: Jason Ekstrand Date: Wed, 1 Jul 2015 00:47:53 +0000 (-0700) Subject: i965/fs: Fix PIXEL_X/Y in regs_read() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebe3043eeacb073c7dbb6162d8f0aee3bc66eeb1;p=mesa.git i965/fs: Fix PIXEL_X/Y in regs_read() PIXEL_X/Y takes a vec2 in the first argument --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index dd955197bca..a19ea664e3f 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -681,7 +681,7 @@ fs_inst::regs_read(int arg) const case FS_OPCODE_PIXEL_X: case FS_OPCODE_PIXEL_Y: if (arg == 0) - components = 1; + components = 2; break; case SHADER_OPCODE_LOAD_PAYLOAD: