i965/fs: Fix PIXEL_X/Y in regs_read()
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Jul 2015 00:47:53 +0000 (17:47 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Jul 2015 00:47:56 +0000 (17:47 -0700)
PIXEL_X/Y takes a vec2 in the first argument

src/mesa/drivers/dri/i965/brw_fs.cpp

index dd955197bcaa1b04ba778f13ea05205305d68c98..a19ea664e3f404ad245375041e1d03691a841105 100644 (file)
@@ -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: