Browse Source

radeonsi: bump glsl version to 450 for nir backend

We still have more work to do but piglit results are looking
pretty good.

At GLSL 1.50 we have 30647/31118 piglit tests passing.
At GLSL 4.50 we have 37927/38551 piglit tests passing.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
tags/18.0-branchpoint
Timothy Arceri 7 years ago
parent
commit
1256ab18c1
1 changed files with 1 additions and 6 deletions
  1. 1
    6
      src/gallium/drivers/radeonsi/si_get.c

+ 1
- 6
src/gallium/drivers/radeonsi/si_get.c View File

return 4; return 4;


case PIPE_CAP_GLSL_FEATURE_LEVEL: case PIPE_CAP_GLSL_FEATURE_LEVEL:
if (sscreen->debug_flags & DBG(NIR))
return 150; /* no tessellation shaders yet */
if (si_have_tgsi_compute(sscreen)) if (si_have_tgsi_compute(sscreen))
return 450; return 450;
return 420; return 420;
case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT: case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT:
return 32; return 32;
case PIPE_SHADER_CAP_PREFERRED_IR: case PIPE_SHADER_CAP_PREFERRED_IR:
if (sscreen->debug_flags & DBG(NIR) &&
(shader == PIPE_SHADER_VERTEX ||
shader == PIPE_SHADER_GEOMETRY ||
shader == PIPE_SHADER_FRAGMENT))
if (sscreen->debug_flags & DBG(NIR))
return PIPE_SHADER_IR_NIR; return PIPE_SHADER_IR_NIR;
return PIPE_SHADER_IR_TGSI; return PIPE_SHADER_IR_TGSI;
case PIPE_SHADER_CAP_LOWER_IF_THRESHOLD: case PIPE_SHADER_CAP_LOWER_IF_THRESHOLD:

Loading…
Cancel
Save