projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
680f72d
)
i965: Fix regs read for FS_OPCODE_INTERP_PER_SLOT_OFFSET
author
Chris Forbes
<chrisf@ijw.co.nz>
Sat, 6 Dec 2014 21:12:36 +0000
(10:12 +1300)
committer
Chris Forbes
<chrisf@ijw.co.nz>
Sat, 6 Dec 2014 21:29:26 +0000
(10:29 +1300)
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@ijw.co.nz>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs.cpp
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 37857e9104289b4a331aab4bf6b796861b8e9272..389c8ae183c80a0eda438ad391306f8be70548ae 100644
(file)
--- 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) {