mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 03:18:08 +02:00
i965: Fix type of gl_FragData[] dereference for FB write.
Fixes glsl-fs-fragdata-1, and hopefully Eve Online where I noticed this bug in the generated shader. Bug #31952.
This commit is contained in:
parent
1ccef926be
commit
2927b6c212
1 changed files with 3 additions and 1 deletions
|
|
@ -2010,8 +2010,10 @@ fs_visitor::emit_fb_writes()
|
|||
fs_reg color = reg_undef;
|
||||
if (this->frag_color)
|
||||
color = *(variable_storage(this->frag_color));
|
||||
else if (this->frag_data)
|
||||
else if (this->frag_data) {
|
||||
color = *(variable_storage(this->frag_data));
|
||||
color.type = BRW_REGISTER_TYPE_F;
|
||||
}
|
||||
|
||||
for (int target = 0; target < c->key.nr_color_regions; target++) {
|
||||
this->current_annotation = talloc_asprintf(this->mem_ctx,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue