summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-05-25 09:31:55 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-05-28 13:33:09 -0700
commit8bbe7fa7a853d8ebf69e5d2d0fdc4343a20b638f (patch)
treeb629a3885b4c224d4f48ec3fe0029f730a0bcf61 /src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
parente354cc9b791cf025d26de7e19c58d499b83a3570 (diff)
downloadexternal_mesa3d-8bbe7fa7a853d8ebf69e5d2d0fdc4343a20b638f.zip
external_mesa3d-8bbe7fa7a853d8ebf69e5d2d0fdc4343a20b638f.tar.gz
external_mesa3d-8bbe7fa7a853d8ebf69e5d2d0fdc4343a20b638f.tar.bz2
i965/fs: Properly handle explicit depth in SIMD16 with dual-source blend
Cc: "10.6" <mesa-stable@lists.freedesktop.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90629 Tested-by: Markus Wick <markus@selfnet.de> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_visitor.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_visitor.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index ead7768..314136c 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -3711,7 +3711,11 @@ fs_visitor::emit_single_fb_write(fs_reg color0, fs_reg color1,
if (prog->OutputsWritten & BITFIELD64_BIT(FRAG_RESULT_DEPTH)) {
/* Hand over gl_FragDepth. */
assert(this->frag_depth.file != BAD_FILE);
- sources[length] = this->frag_depth;
+ if (exec_size < dispatch_width) {
+ sources[length] = half(this->frag_depth, use_2nd_half);
+ } else {
+ sources[length] = this->frag_depth;
+ }
} else {
/* Pass through the payload depth. */
sources[length] = fs_reg(brw_vec8_grf(payload.source_depth_reg, 0));