diff options
author | Matt Turner <[email protected]> | 2014-10-23 15:45:15 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-10-23 16:20:07 -0700 |
commit | 40492be2a4a339b02c38990ad8736644f3a8776b (patch) | |
tree | 917b556ebbd084fe789f401486646875e4025b25 | |
parent | 2695891088d5b910edd9ec4d3ad81f0e3469205c (diff) |
i965/fs: Silence uninitialized variable warning.
The compiler isn't privy to the knowledge that we're doing at least one
framebuffer write.
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index e941c58a36d..983e8db63e0 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -2601,6 +2601,7 @@ fs_visitor::emit_repclear_shader() write->header_present = false; write->mlen = 1; } else { + assume(key->nr_color_regions > 0); for (int i = 0; i < key->nr_color_regions; ++i) { write = emit(FS_OPCODE_REP_FB_WRITE); write->saturate = key->clamp_fragment_color; |