freedreno: add ESSL cap

Report 320 for a6xx, which isn't *quite* true (no geom/tess, in
particular), but other caps keep the reported GL and GLSL versions
correct (3.1 / 3.10 es).  But reporting 320 will switch on
EXT_gpu_shader5, which is the goal.

Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
Rob Clark 2019-03-21 09:33:33 -04:00
parent 6cd9876047
commit 6fd5a7ff8c
1 changed files with 7 additions and 0 deletions

View File

@ -279,6 +279,13 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return 120;
return is_ir3(screen) ? 140 : 120;
case PIPE_CAP_ESSL_FEATURE_LEVEL:
/* we can probably enable 320 for a5xx too, but need to test: */
if (is_a6xx(screen)) return 320;
if (is_a5xx(screen)) return 310;
if (is_ir3(screen)) return 300;
return 120;
case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT:
if (is_a6xx(screen)) return 64;
if (is_a5xx(screen)) return 4;