mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 23:09:05 +02:00
v3d: re-enable GLSL loop unrolling
Disabling it that made us start to fail register allocation for a
few tests. Re-enable it until we figure out what is causing that.
Fixes: ca9e0871fb ('v3d: enable NIR loop unrolling')
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10684>
This commit is contained in:
parent
c80877b535
commit
e5fc2064fc
1 changed files with 9 additions and 2 deletions
|
|
@ -423,8 +423,15 @@ v3d_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
|
|||
case PIPE_SHADER_CAP_SUPPORTED_IRS:
|
||||
return 1 << PIPE_SHADER_IR_NIR;
|
||||
case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT:
|
||||
/* Disable GLSL loop unrolling, we'll use NIR's */
|
||||
return 0;
|
||||
/* FIXME: if we disable GLSL loop unrolling in favor of NIR's
|
||||
* we fail to register allocate some tests, like:
|
||||
* - KHR-GLES31.core.geometry_shader.limits.max_input_components
|
||||
* - bin/max-samplers border -auto -fbo
|
||||
*
|
||||
* So keep it enabled until we figure out what's going on with
|
||||
* that.
|
||||
*/
|
||||
return 32;
|
||||
case PIPE_SHADER_CAP_LOWER_IF_THRESHOLD:
|
||||
case PIPE_SHADER_CAP_TGSI_SKIP_MERGE_REGISTERS:
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue