r600/sfn: Force a minimum of 4 GPRs, it seems to fix atomics
This fixes spec@arb_compute_shader@execution@atomic-counter on HD 5450 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6025>
This commit is contained in:
@@ -977,6 +977,8 @@ int r600_shader_from_nir(struct r600_context *rctx,
|
||||
} else {
|
||||
r600::sfn_log << r600::SfnLog::shader_info << "This is not a Geometry shader\n";
|
||||
}
|
||||
if (pipeshader->shader.bc.ngpr < 4)
|
||||
pipeshader->shader.bc.ngpr = 4;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user