projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f7bd68
)
i965: Subtract instead of adding when computing y delta in new FS backend.
author
Eric Anholt
<eric@anholt.net>
Tue, 28 Sep 2010 17:18:31 +0000
(10:18 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 28 Sep 2010 17:19:54 +0000
(10:19 -0700)
Fixes 7 piglit cases.
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 0595488c9cc54ddbce3a17029288da8d0d3242ea..723ebca61bbb7a9c1fbd15cf789a98cfc7bd27e4 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_fs.cpp
@@
-1335,7
+1335,7
@@
fs_visitor::emit_interpolation()
emit(fs_inst(BRW_OPCODE_ADD,
this->delta_y,
this->pixel_y,
- fs_reg(
brw_vec1_grf(1, 1
))));
+ fs_reg(
negate(brw_vec1_grf(1, 1)
))));
this->current_annotation = "compute pos.w and 1/pos.w";
/* Compute wpos. Unlike many other varying inputs, we usually need it