From ebe3043eeacb073c7dbb6162d8f0aee3bc66eeb1 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 30 Jun 2015 17:47:53 -0700 Subject: [PATCH] i965/fs: Fix PIXEL_X/Y in regs_read() PIXEL_X/Y takes a vec2 in the first argument --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2