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