mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
i965: Fix compiler warning about write being undefined.
This looks like it should be protected by the assume() about nr_color_regions, but my compiler warns anyway. Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
4636ce362d
commit
afa7b2f199
1 changed files with 1 additions and 1 deletions
|
|
@ -3070,7 +3070,7 @@ fs_visitor::emit_repclear_shader()
|
|||
.MOV(vec4(brw_message_reg(color_mrf)), fs_reg(reg));
|
||||
}
|
||||
|
||||
fs_inst *write;
|
||||
fs_inst *write = NULL;
|
||||
if (key->nr_color_regions == 1) {
|
||||
write = bld.emit(FS_OPCODE_REP_FB_WRITE);
|
||||
write->saturate = key->clamp_fragment_color;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue