mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 15:50:37 +02:00
mesa: add some new constants
These will be used by the compiler in a following patch. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22846>
This commit is contained in:
parent
5f26c647fb
commit
ef58936876
2 changed files with 17 additions and 0 deletions
|
|
@ -941,6 +941,15 @@ struct gl_constants
|
|||
/** Is the drivers uniform storage packed or padded to 16 bytes. */
|
||||
bool PackedDriverUniformStorage;
|
||||
|
||||
bool HasFBFetch;
|
||||
|
||||
/** Whether the backend supports reading from outputs */
|
||||
bool SupportsReadingOutputs;
|
||||
|
||||
bool CombinedClipCullDistanceArrays;
|
||||
|
||||
bool PointSizeFixed;
|
||||
|
||||
/** Wether or not glBitmap uses red textures rather than alpha */
|
||||
bool BitmapUsesRed;
|
||||
|
||||
|
|
|
|||
|
|
@ -168,6 +168,14 @@ void st_init_limits(struct pipe_screen *screen,
|
|||
*/
|
||||
c->MaxUniformBlockSize &= ~3;
|
||||
|
||||
c->HasFBFetch = screen->get_param(screen, PIPE_CAP_FBFETCH);
|
||||
|
||||
c->SupportsReadingOutputs = screen->get_param(screen, PIPE_CAP_SHADER_CAN_READ_OUTPUTS);
|
||||
|
||||
c->CombinedClipCullDistanceArrays = !screen->get_param(screen, PIPE_CAP_CULL_DISTANCE_NOCOMBINE);
|
||||
|
||||
c->PointSizeFixed = screen->get_param(screen, PIPE_CAP_POINT_SIZE_FIXED);
|
||||
|
||||
for (sh = 0; sh < PIPE_SHADER_TYPES; ++sh) {
|
||||
const gl_shader_stage stage = tgsi_processor_to_shader_stage(sh);
|
||||
struct gl_shader_compiler_options *options =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue