Lines Matching defs:consts

754                         struct gl_constants *consts,
1124 consts->GLSLVersion = screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL);
1125 consts->GLSLVersionCompat =
1131 api == API_OPENGL_COMPAT ? consts->GLSLVersionCompat :
1132 consts->GLSLVersion;
1134 _mesa_override_glsl_version(consts);
1138 consts->ForceGLSLVersion = options->force_glsl_version;
1141 consts->ForceCompatShaders = options->force_compat_shaders;
1143 consts->AllowExtraPPTokens = options->allow_extra_pp_tokens;
1145 consts->AllowHigherCompatVersion = options->allow_higher_compat_version;
1146 consts->AllowGLSLCompatShaders = options->allow_glsl_compat_shaders;
1148 consts->ForceGLSLAbsSqrt = options->force_glsl_abs_sqrt;
1150 consts->AllowGLSLBuiltinVariableRedeclaration = options->allow_glsl_builtin_variable_redeclaration;
1152 consts->dri_config_options_sha1 = options->config_options_sha1;
1154 consts->AllowGLSLCrossStageInterpolationMismatch = options->allow_glsl_cross_stage_interpolation_mismatch;
1156 consts->DoDCEBeforeClipCullAnalysis = options->do_dce_before_clip_cull_analysis;
1158 consts->GLSLIgnoreWriteToReadonlyVar = options->glsl_ignore_write_to_readonly_var;
1160 consts->ForceMapBufferSynchronized = options->force_gl_map_buffer_synchronized;
1162 consts->PrimitiveRestartFixedIndex =
1193 if (consts->MaxTransformFeedbackBuffers &&
1199 consts->NativeIntegers = GL_TRUE;
1200 consts->MaxClipPlanes = 8;
1205 consts->MaxClipPlanes = drv_clip_planes;
1208 consts->VertexID_is_zero_based = GL_TRUE;
1234 consts->NativeIntegers = GL_TRUE;
1245 consts->GLSLZeroInit = 1;
1247 consts->GLSLZeroInit = screen->get_param(screen, PIPE_CAP_GLSL_ZERO_INIT);
1250 consts->ForceGLNamesReuse = options->force_gl_names_reuse;
1252 consts->ForceIntegerTexNearest = options->force_integer_tex_nearest;
1254 consts->VendorOverride = options->force_gl_vendor;
1255 consts->RendererOverride = options->force_gl_renderer;
1257 consts->UniformBooleanTrue = consts->NativeIntegers ? ~0U : fui(1.0f);
1264 (api != API_OPENGL_COMPAT || consts->GLSLVersionCompat >= 400)) {
1272 consts->MaxGeometryShaderInvocations >= 32) {
1313 consts->MaxSamples =
1318 consts->MaxImageSamples =
1323 consts->MaxColorTextureSamples =
1325 color_formats, consts->MaxSamples,
1328 consts->MaxDepthTextureSamples =
1330 depth_formats, consts->MaxSamples,
1333 consts->MaxIntegerSamples =
1335 int_formats, consts->MaxSamples,
1339 consts->MaxFramebufferSamples =
1347 consts->MaxColorFramebufferSamples =
1351 consts->MaxSamples,
1358 consts->MaxColorFramebufferStorageSamples = consts->MaxSamples;
1359 consts->MaxDepthStencilFramebufferSamples =
1360 consts->MaxDepthTextureSamples;
1362 assert(consts->MaxColorFramebufferSamples >=
1363 consts->MaxDepthStencilFramebufferSamples);
1364 assert(consts->MaxDepthStencilFramebufferSamples >=
1365 consts->MaxColorFramebufferStorageSamples);
1367 consts->NumSupportedMultisampleModes = 0;
1372 samples <= consts->MaxDepthStencilFramebufferSamples;
1381 samples <= consts->MaxColorFramebufferSamples;
1396 unsigned i = consts->NumSupportedMultisampleModes;
1398 assert(i < ARRAY_SIZE(consts->SupportedMultisampleModes));
1399 consts->SupportedMultisampleModes[i].NumColorSamples =
1401 consts->SupportedMultisampleModes[i].NumColorStorageSamples =
1403 consts->SupportedMultisampleModes[i].NumDepthStencilSamples =
1405 consts->NumSupportedMultisampleModes++;
1413 if (consts->MaxSamples >= 2) {
1418 else if (consts->MaxSamples > 0 &&
1421 consts->FakeSWMSAA = GL_TRUE;
1427 if (consts->MaxDualSourceDrawBuffers > 0 &&
1441 consts->ForceGLSLExtensionsWarn = 1;
1444 consts->DisableGLSLLineContinuations = 1;
1447 consts->AllowGLSLExtensionDirectiveMidShader = GL_TRUE;
1450 consts->AllowGLSL120SubsetIn110 = GL_TRUE;
1453 consts->AllowGLSLBuiltinConstantExpression = GL_TRUE;
1456 consts->AllowGLSLRelaxedES = GL_TRUE;
1458 consts->MinMapBufferAlignment =
1467 consts->MaxTextureBufferSize =
1469 consts->TextureBufferOffsetAlignment =
1472 if (consts->TextureBufferOffsetAlignment)
1481 consts->Program[MESA_SHADER_COMPUTE].MaxImageUniforms &&
1501 consts->DisableVaryingPacking = GL_TRUE;
1505 consts->DisableTransformFeedbackPacking = GL_TRUE;
1508 consts->PreferPOTAlignedVaryings = GL_TRUE;
1528 consts->MaxViewports = screen->get_param(screen, PIPE_CAP_MAX_VIEWPORTS);
1529 if (consts->MaxViewports >= 16) {
1531 consts->ViewportBounds.Min = -32768.0;
1532 consts->ViewportBounds.Max = 32767.0;
1534 consts->ViewportBounds.Min = -16384.0;
1535 consts->ViewportBounds.Max = 16383.0;
1550 ((consts->MaxSamples >= 4 && consts->MaxFramebufferLayers >= 2048) ||
1551 (consts->MaxFramebufferSamples >= consts->MaxSamples &&
1552 consts->MaxFramebufferLayers >= consts->MaxArrayTextureLayers)))
1561 consts->PrimitiveRestartFixedIndex) &&
1627 consts->MaxComputeWorkGroupInvocations = max_threads_per_block;
1628 consts->MaxComputeSharedMemorySize = max_local_size;
1632 consts->MaxComputeWorkGroupCount[i] = MIN2(grid_size[i], INT_MAX - 1);
1633 consts->MaxComputeWorkGroupSize[i] = block_size[i];
1652 consts->MaxComputeVariableGroupSize[i] =
1653 MIN2(consts->MaxComputeWorkGroupSize[i],
1656 consts->MaxComputeVariableGroupInvocations =
1681 consts->Program[MESA_SHADER_FRAGMENT].MaxImageUniforms &&
1711 consts->NoPrimitiveBoundingBoxOutput = true;
1714 consts->Program[MESA_SHADER_FRAGMENT].MaxImageUniforms &&
1774 struct spirv_supported_capabilities *spirv_caps = &consts->SpirVCapabilities;
1783 consts->MaxImageSamples > 1;
1793 consts->MaxImageSamples > 1;
1802 consts->SpirVExtensions = CALLOC_STRUCT(spirv_supported_extensions);
1803 _mesa_fill_supported_spirv_extensions(consts->SpirVExtensions, spirv_caps);
1806 consts->AllowDrawOutOfOrder =
1810 consts->GLThreadNopCheckFramebufferStatus = options->glthread_nop_check_framebuffer_status;
1815 consts->ShaderCompilerOptions[MESA_SHADER_FRAGMENT].NirOptions;