crocus/gen5: enable support for GL_EXT_gpu_shader4

There has been a few requests for this and I've got patches for glamor
to use this to speed up the paths that use GLSL 1.30 now.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11693>
This commit is contained in:
Dave Airlie 2021-07-01 12:23:09 +10:00
parent c71daec260
commit d41992c241

View file

@ -294,10 +294,10 @@ crocus_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return 420;
else if (devinfo->ver >= 6)
return 330;
return 120;
return 140;
}
case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY:
return devinfo->ver < 6 ? 120 : 130;
return 140;
case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT:
/* 3DSTATE_CONSTANT_XS requires the start of UBOs to be 32B aligned */