mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
i965/vs: Fix GPU hangs in shaders with large virtual GRFs pre-gen6.
If you get your total GRF count wrong, you write over some other shader's g0, and the GPU fails shortly thereafter. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
23eec54bb0
commit
8adcad213e
1 changed files with 2 additions and 1 deletions
|
|
@ -216,7 +216,8 @@ vec4_visitor::reg_allocate()
|
|||
int reg = ra_get_node_reg(g, i);
|
||||
|
||||
hw_reg_mapping[i] = first_assigned_grf + brw->vs.ra_reg_to_grf[reg];
|
||||
prog_data->total_grf = MAX2(prog_data->total_grf, hw_reg_mapping[i] + 1);
|
||||
prog_data->total_grf = MAX2(prog_data->total_grf,
|
||||
hw_reg_mapping[i] + virtual_grf_sizes[i]);
|
||||
}
|
||||
|
||||
foreach_list(node, &this->instructions) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue