• Home
  • Raw
  • Download

Lines Matching refs:consts

767                         struct gl_constants *consts,  in st_init_extensions()  argument
1175 consts->GLSLVersion = screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL); in st_init_extensions()
1176 consts->GLSLVersionCompat = in st_init_extensions()
1182 api == API_OPENGL_COMPAT ? consts->GLSLVersionCompat : in st_init_extensions()
1183 consts->GLSLVersion; in st_init_extensions()
1185 _mesa_override_glsl_version(consts); in st_init_extensions()
1189 consts->ForceGLSLVersion = options->force_glsl_version; in st_init_extensions()
1192 consts->AllowExtraPPTokens = options->allow_extra_pp_tokens; in st_init_extensions()
1194 consts->AllowHigherCompatVersion = options->allow_higher_compat_version; in st_init_extensions()
1196 consts->ForceGLSLAbsSqrt = options->force_glsl_abs_sqrt; in st_init_extensions()
1198consts->AllowGLSLBuiltinVariableRedeclaration = options->allow_glsl_builtin_variable_redeclaration; in st_init_extensions()
1200 consts->dri_config_options_sha1 = options->config_options_sha1; in st_init_extensions()
1202consts->AllowGLSLCrossStageInterpolationMismatch = options->allow_glsl_cross_stage_interpolation_m… in st_init_extensions()
1204 consts->GLSLIgnoreWriteToReadonlyVar = options->glsl_ignore_write_to_readonly_var; in st_init_extensions()
1206 consts->PrimitiveRestartFixedIndex = in st_init_extensions()
1242 consts->NativeIntegers = GL_TRUE; in st_init_extensions()
1243 consts->MaxClipPlanes = 8; in st_init_extensions()
1246 consts->VertexID_is_zero_based = GL_TRUE; in st_init_extensions()
1272 consts->NativeIntegers = GL_TRUE; in st_init_extensions()
1283 consts->GLSLZeroInit = 1; in st_init_extensions()
1285 consts->GLSLZeroInit = screen->get_param(screen, PIPE_CAP_GLSL_ZERO_INIT); in st_init_extensions()
1288 consts->ForceGLNamesReuse = options->force_gl_names_reuse; in st_init_extensions()
1290 consts->ForceIntegerTexNearest = options->force_integer_tex_nearest; in st_init_extensions()
1292 consts->VendorOverride = options->force_gl_vendor; in st_init_extensions()
1293 consts->RendererOverride = options->force_gl_renderer; in st_init_extensions()
1295 consts->UniformBooleanTrue = consts->NativeIntegers ? ~0U : fui(1.0f); in st_init_extensions()
1302 (api != API_OPENGL_COMPAT || consts->GLSLVersionCompat >= 400)) { in st_init_extensions()
1310 consts->MaxGeometryShaderInvocations >= 32) { in st_init_extensions()
1351 consts->MaxSamples = in st_init_extensions()
1356 consts->MaxImageSamples = in st_init_extensions()
1361 consts->MaxColorTextureSamples = in st_init_extensions()
1363 color_formats, consts->MaxSamples, in st_init_extensions()
1366 consts->MaxDepthTextureSamples = in st_init_extensions()
1368 depth_formats, consts->MaxSamples, in st_init_extensions()
1371 consts->MaxIntegerSamples = in st_init_extensions()
1373 int_formats, consts->MaxSamples, in st_init_extensions()
1377 consts->MaxFramebufferSamples = in st_init_extensions()
1385 consts->MaxColorFramebufferSamples = in st_init_extensions()
1389 consts->MaxSamples, in st_init_extensions()
1396 consts->MaxColorFramebufferStorageSamples = consts->MaxSamples; in st_init_extensions()
1397 consts->MaxDepthStencilFramebufferSamples = in st_init_extensions()
1398 consts->MaxDepthTextureSamples; in st_init_extensions()
1400 assert(consts->MaxColorFramebufferSamples >= in st_init_extensions()
1401 consts->MaxDepthStencilFramebufferSamples); in st_init_extensions()
1402 assert(consts->MaxDepthStencilFramebufferSamples >= in st_init_extensions()
1403 consts->MaxColorFramebufferStorageSamples); in st_init_extensions()
1405 consts->NumSupportedMultisampleModes = 0; in st_init_extensions()
1410 samples <= consts->MaxDepthStencilFramebufferSamples; in st_init_extensions()
1419 samples <= consts->MaxColorFramebufferSamples; in st_init_extensions()
1434 unsigned i = consts->NumSupportedMultisampleModes; in st_init_extensions()
1436 assert(i < ARRAY_SIZE(consts->SupportedMultisampleModes)); in st_init_extensions()
1437 consts->SupportedMultisampleModes[i].NumColorSamples = in st_init_extensions()
1439 consts->SupportedMultisampleModes[i].NumColorStorageSamples = in st_init_extensions()
1441 consts->SupportedMultisampleModes[i].NumDepthStencilSamples = in st_init_extensions()
1443 consts->NumSupportedMultisampleModes++; in st_init_extensions()
1451 if (consts->MaxSamples >= 2) { in st_init_extensions()
1456 else if (consts->MaxSamples > 0 && in st_init_extensions()
1459 consts->FakeSWMSAA = GL_TRUE; in st_init_extensions()
1465 if (consts->MaxDualSourceDrawBuffers > 0 && in st_init_extensions()
1479 consts->ForceGLSLExtensionsWarn = 1; in st_init_extensions()
1482 consts->DisableGLSLLineContinuations = 1; in st_init_extensions()
1485 consts->AllowGLSLExtensionDirectiveMidShader = GL_TRUE; in st_init_extensions()
1488 consts->AllowGLSL120SubsetIn110 = GL_TRUE; in st_init_extensions()
1491 consts->AllowGLSLBuiltinConstantExpression = GL_TRUE; in st_init_extensions()
1494 consts->AllowGLSLRelaxedES = GL_TRUE; in st_init_extensions()
1496 consts->MinMapBufferAlignment = in st_init_extensions()
1505 consts->MaxTextureBufferSize = in st_init_extensions()
1508 consts->TextureBufferOffsetAlignment = in st_init_extensions()
1511 if (consts->TextureBufferOffsetAlignment) in st_init_extensions()
1540 consts->DisableVaryingPacking = GL_TRUE; in st_init_extensions()
1544 consts->DisableTransformFeedbackPacking = GL_TRUE; in st_init_extensions()
1564 consts->MaxViewports = screen->get_param(screen, PIPE_CAP_MAX_VIEWPORTS); in st_init_extensions()
1565 if (consts->MaxViewports >= 16) { in st_init_extensions()
1567 consts->ViewportBounds.Min = -32768.0; in st_init_extensions()
1568 consts->ViewportBounds.Max = 32767.0; in st_init_extensions()
1570 consts->ViewportBounds.Min = -16384.0; in st_init_extensions()
1571 consts->ViewportBounds.Max = 16383.0; in st_init_extensions()
1586 ((consts->MaxSamples >= 4 && consts->MaxFramebufferLayers >= 2048) || in st_init_extensions()
1587 (consts->MaxFramebufferSamples >= consts->MaxSamples && in st_init_extensions()
1588 consts->MaxFramebufferLayers >= consts->MaxArrayTextureLayers))) in st_init_extensions()
1597 consts->PrimitiveRestartFixedIndex) && in st_init_extensions()
1663 consts->MaxComputeWorkGroupInvocations = max_threads_per_block; in st_init_extensions()
1664 consts->MaxComputeSharedMemorySize = max_local_size; in st_init_extensions()
1667 consts->MaxComputeWorkGroupCount[i] = grid_size[i]; in st_init_extensions()
1668 consts->MaxComputeWorkGroupSize[i] = block_size[i]; in st_init_extensions()
1687 consts->MaxComputeVariableGroupSize[i] = in st_init_extensions()
1688 MIN2(consts->MaxComputeWorkGroupSize[i], in st_init_extensions()
1691 consts->MaxComputeVariableGroupInvocations = in st_init_extensions()
1745 consts->NoPrimitiveBoundingBoxOutput = true; in st_init_extensions()
1810 struct spirv_supported_capabilities *spirv_caps = &consts->SpirVCapabilities; in st_init_extensions()
1819 consts->MaxImageSamples > 1; in st_init_extensions()
1829 consts->MaxImageSamples > 1; in st_init_extensions()
1838 consts->SpirVExtensions = CALLOC_STRUCT(spirv_supported_extensions); in st_init_extensions()
1839 _mesa_fill_supported_spirv_extensions(consts->SpirVExtensions, spirv_caps); in st_init_extensions()
1842 consts->AllowDrawOutOfOrder = options->allow_draw_out_of_order; in st_init_extensions()
1847 consts->ShaderCompilerOptions[MESA_SHADER_FRAGMENT].NirOptions; in st_init_extensions()