Home | History | Annotate | Download | only in state_tracker

Lines Matching refs:consts

565                         struct gl_constants *consts,
872 consts->GLSLVersion = screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL);
874 _mesa_override_glsl_version(consts);
877 options->force_glsl_version <= consts->GLSLVersion) {
878 consts->ForceGLSLVersion = options->force_glsl_version;
881 if (consts->GLSLVersion >= 400)
883 if (consts->GLSLVersion >= 410)
888 if (consts->GLSLVersion >= 150 &&
893 if (consts->GLSLVersion >= 140) {
900 if (consts->GLSLVersion >= 130) {
901 consts->NativeIntegers = GL_TRUE;
902 consts->MaxClipPlanes = 8;
905 consts->VertexID_is_zero_based = GL_TRUE;
929 consts->NativeIntegers = GL_TRUE;
938 consts->GLSLZeroInit = options->glsl_zero_init;
940 consts->UniformBooleanTrue = consts->NativeIntegers ? ~0U : fui(1.0f);
958 if (consts->GLSLVersion >= 400 &&
996 consts->MaxSamples =
1001 consts->MaxImageSamples =
1006 consts->MaxColorTextureSamples =
1008 color_formats, consts->MaxSamples,
1011 consts->MaxDepthTextureSamples =
1013 depth_formats, consts->MaxSamples,
1016 consts->MaxIntegerSamples =
1018 int_formats, consts->MaxSamples,
1022 consts->MaxFramebufferSamples =
1027 if (consts->MaxSamples == 1) {
1029 consts->MaxSamples = 0;
1031 else if (consts->MaxSamples >= 2) {
1036 if (consts->MaxSamples == 0 && screen->get_param(screen, PIPE_CAP_FAKE_SW_MSAA)) {
1037 consts->FakeSWMSAA = GL_TRUE;
1043 if (consts->MaxDualSourceDrawBuffers > 0 &&
1057 consts->ForceGLSLExtensionsWarn = 1;
1060 consts->DisableGLSLLineContinuations = 1;
1063 consts->AllowGLSLExtensionDirectiveMidShader = GL_TRUE;
1065 consts->MinMapBufferAlignment =
1069 consts->MaxTextureBufferSize =
1072 consts->TextureBufferOffsetAlignment =
1075 if (consts->TextureBufferOffsetAlignment)
1100 consts->DisableVaryingPacking = GL_TRUE;
1103 consts->MaxViewports = screen->get_param(screen, PIPE_CAP_MAX_VIEWPORTS);
1104 if (consts->MaxViewports >= 16) {
1105 if (consts->GLSLVersion >= 400) {
1106 consts->ViewportBounds.Min = -32768.0;
1107 consts->ViewportBounds.Max = 32767.0;
1109 consts->ViewportBounds.Min = -16384.0;
1110 consts->ViewportBounds.Max = 16383.0;
1120 ((consts->MaxSamples >= 4 && consts->MaxFramebufferLayers >= 2048) ||
1121 (consts->MaxFramebufferSamples >= consts->MaxSamples &&
1122 consts->MaxFramebufferLayers >= consts->MaxArrayTextureLayers)))
1130 if (consts->GLSLVersion >= 330 &&
1193 consts->MaxComputeWorkGroupInvocations = max_threads_per_block;
1194 consts->MaxComputeSharedMemorySize = max_local_size;
1197 consts->MaxComputeWorkGroupCount[i] = grid_size[i];
1198 consts->MaxComputeWorkGroupSize[i] = block_size[i];
1216 consts->MaxComputeVariableGroupSize[i] =
1217 MIN2(consts->MaxComputeWorkGroupSize[i],
1220 consts->MaxComputeVariableGroupInvocations =
1264 consts->NoPrimitiveBoundingBoxOutput = true;