• Home
  • Raw
  • Download

Lines Matching refs:consts

303 init_program_limits(struct gl_constants *consts, gl_shader_stage stage,  in init_program_limits()  argument
387 consts->MaxUniformBlockSize / 4 * in init_program_limits()
403 _mesa_init_constants(struct gl_constants *consts, gl_api api) in _mesa_init_constants() argument
406 assert(consts); in _mesa_init_constants()
409 consts->MaxTextureMbytes = MAX_TEXTURE_MBYTES; in _mesa_init_constants()
410 consts->MaxTextureSize = 1 << (MAX_TEXTURE_LEVELS - 1); in _mesa_init_constants()
411 consts->Max3DTextureLevels = MAX_TEXTURE_LEVELS; in _mesa_init_constants()
412 consts->MaxCubeTextureLevels = MAX_TEXTURE_LEVELS; in _mesa_init_constants()
413 consts->MaxTextureRectSize = MAX_TEXTURE_RECT_SIZE; in _mesa_init_constants()
414 consts->MaxArrayTextureLayers = MAX_ARRAY_TEXTURE_LAYERS; in _mesa_init_constants()
415 consts->MaxTextureCoordUnits = MAX_TEXTURE_COORD_UNITS; in _mesa_init_constants()
416 consts->Program[MESA_SHADER_FRAGMENT].MaxTextureImageUnits = MAX_TEXTURE_IMAGE_UNITS; in _mesa_init_constants()
417 consts->MaxTextureUnits = MIN2(consts->MaxTextureCoordUnits, in _mesa_init_constants()
418 consts->Program[MESA_SHADER_FRAGMENT].MaxTextureImageUnits); in _mesa_init_constants()
419 consts->MaxTextureMaxAnisotropy = MAX_TEXTURE_MAX_ANISOTROPY; in _mesa_init_constants()
420 consts->MaxTextureLodBias = MAX_TEXTURE_LOD_BIAS; in _mesa_init_constants()
421 consts->MaxTextureBufferSize = 65536; in _mesa_init_constants()
422 consts->TextureBufferOffsetAlignment = 1; in _mesa_init_constants()
423 consts->MaxArrayLockSize = MAX_ARRAY_LOCK_SIZE; in _mesa_init_constants()
424 consts->SubPixelBits = SUB_PIXEL_BITS; in _mesa_init_constants()
425 consts->MinPointSize = MIN_POINT_SIZE; in _mesa_init_constants()
426 consts->MaxPointSize = MAX_POINT_SIZE; in _mesa_init_constants()
427 consts->MinPointSizeAA = MIN_POINT_SIZE; in _mesa_init_constants()
428 consts->MaxPointSizeAA = MAX_POINT_SIZE; in _mesa_init_constants()
429 consts->PointSizeGranularity = (GLfloat) POINT_SIZE_GRANULARITY; in _mesa_init_constants()
430 consts->MinLineWidth = MIN_LINE_WIDTH; in _mesa_init_constants()
431 consts->MaxLineWidth = MAX_LINE_WIDTH; in _mesa_init_constants()
432 consts->MinLineWidthAA = MIN_LINE_WIDTH; in _mesa_init_constants()
433 consts->MaxLineWidthAA = MAX_LINE_WIDTH; in _mesa_init_constants()
434 consts->LineWidthGranularity = (GLfloat) LINE_WIDTH_GRANULARITY; in _mesa_init_constants()
435 consts->MaxClipPlanes = 6; in _mesa_init_constants()
436 consts->MaxLights = MAX_LIGHTS; in _mesa_init_constants()
437 consts->MaxShininess = 128.0; in _mesa_init_constants()
438 consts->MaxSpotExponent = 128.0; in _mesa_init_constants()
439 consts->MaxViewportWidth = 16384; in _mesa_init_constants()
440 consts->MaxViewportHeight = 16384; in _mesa_init_constants()
441 consts->MinMapBufferAlignment = 64; in _mesa_init_constants()
444 consts->MaxViewports = 1; in _mesa_init_constants()
445 consts->ViewportSubpixelBits = 0; in _mesa_init_constants()
446 consts->ViewportBounds.Min = 0; in _mesa_init_constants()
447 consts->ViewportBounds.Max = 0; in _mesa_init_constants()
450 consts->MaxCombinedUniformBlocks = 36; in _mesa_init_constants()
451 consts->MaxUniformBufferBindings = 36; in _mesa_init_constants()
452 consts->MaxUniformBlockSize = 16384; in _mesa_init_constants()
453 consts->UniformBufferOffsetAlignment = 1; in _mesa_init_constants()
456 consts->MaxCombinedShaderStorageBlocks = 8; in _mesa_init_constants()
457 consts->MaxShaderStorageBufferBindings = 8; in _mesa_init_constants()
458 consts->MaxShaderStorageBlockSize = 128 * 1024 * 1024; /* 2^27 */ in _mesa_init_constants()
459 consts->ShaderStorageBufferOffsetAlignment = 256; in _mesa_init_constants()
462 consts->MaxUserAssignableUniformLocations = in _mesa_init_constants()
466 init_program_limits(consts, i, &consts->Program[i]); in _mesa_init_constants()
468 consts->MaxProgramMatrices = MAX_PROGRAM_MATRICES; in _mesa_init_constants()
469 consts->MaxProgramMatrixStackDepth = MAX_PROGRAM_MATRIX_STACK_DEPTH; in _mesa_init_constants()
479 consts->GLSLVersion = api == API_OPENGL_CORE ? 130 : 120; in _mesa_init_constants()
480 consts->GLSLVersionCompat = consts->GLSLVersion; in _mesa_init_constants()
482 consts->GLSLLowerConstArrays = true; in _mesa_init_constants()
488 consts->VertexID_is_zero_based = false; in _mesa_init_constants()
491 consts->MaxDrawBuffers = MAX_DRAW_BUFFERS; in _mesa_init_constants()
493 consts->MaxColorAttachments = MAX_COLOR_ATTACHMENTS; in _mesa_init_constants()
494 consts->MaxRenderbufferSize = MAX_RENDERBUFFER_SIZE; in _mesa_init_constants()
496 consts->Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = MAX_TEXTURE_IMAGE_UNITS; in _mesa_init_constants()
497 consts->MaxCombinedTextureImageUnits = MAX_COMBINED_TEXTURE_IMAGE_UNITS; in _mesa_init_constants()
498 consts->MaxVarying = 16; /* old limit not to break tnl and swrast */ in _mesa_init_constants()
499 consts->Program[MESA_SHADER_GEOMETRY].MaxTextureImageUnits = MAX_TEXTURE_IMAGE_UNITS; in _mesa_init_constants()
500 consts->MaxGeometryOutputVertices = MAX_GEOMETRY_OUTPUT_VERTICES; in _mesa_init_constants()
501 consts->MaxGeometryTotalOutputComponents = MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS; in _mesa_init_constants()
502 consts->MaxGeometryShaderInvocations = MAX_GEOMETRY_SHADER_INVOCATIONS; in _mesa_init_constants()
505 consts->GenerateTemporaryNames = true; in _mesa_init_constants()
507 consts->GenerateTemporaryNames = false; in _mesa_init_constants()
511 consts->MaxSamples = 0; in _mesa_init_constants()
514 consts->UniformBooleanTrue = FLOAT_AS_UNION(1.0f).u; in _mesa_init_constants()
517 consts->MaxServerWaitTimeout = 0x7fffffff7fffffffULL; in _mesa_init_constants()
520 consts->QuadsFollowProvokingVertexConvention = GL_TRUE; in _mesa_init_constants()
523 consts->LayerAndVPIndexProvokingVertex = GL_UNDEFINED_VERTEX; in _mesa_init_constants()
526 consts->MaxTransformFeedbackBuffers = MAX_FEEDBACK_BUFFERS; in _mesa_init_constants()
527 consts->MaxTransformFeedbackSeparateComponents = 4 * MAX_FEEDBACK_ATTRIBS; in _mesa_init_constants()
528 consts->MaxTransformFeedbackInterleavedComponents = 4 * MAX_FEEDBACK_ATTRIBS; in _mesa_init_constants()
529 consts->MaxVertexStreams = 1; in _mesa_init_constants()
532 consts->ProfileMask = api == API_OPENGL_CORE in _mesa_init_constants()
537 consts->MaxVertexAttribStride = 2048; in _mesa_init_constants()
540 consts->MinProgramTexelOffset = -8; in _mesa_init_constants()
541 consts->MaxProgramTexelOffset = 7; in _mesa_init_constants()
544 consts->MinProgramTextureGatherOffset = -8; in _mesa_init_constants()
545 consts->MaxProgramTextureGatherOffset = 7; in _mesa_init_constants()
548 consts->ResetStrategy = GL_NO_RESET_NOTIFICATION_ARB; in _mesa_init_constants()
551 consts->RobustAccess = GL_FALSE; in _mesa_init_constants()
554 consts->MaxElementIndex = 0xffffffffu; in _mesa_init_constants()
557 consts->MaxColorTextureSamples = 1; in _mesa_init_constants()
558 consts->MaxDepthTextureSamples = 1; in _mesa_init_constants()
559 consts->MaxIntegerSamples = 1; in _mesa_init_constants()
562 consts->MaxAtomicBufferBindings = MAX_COMBINED_ATOMIC_BUFFERS; in _mesa_init_constants()
563 consts->MaxAtomicBufferSize = MAX_ATOMIC_COUNTERS * ATOMIC_COUNTER_SIZE; in _mesa_init_constants()
564 consts->MaxCombinedAtomicBuffers = MAX_COMBINED_ATOMIC_BUFFERS; in _mesa_init_constants()
565 consts->MaxCombinedAtomicCounters = MAX_ATOMIC_COUNTERS; in _mesa_init_constants()
568 consts->MaxVertexAttribRelativeOffset = 2047; in _mesa_init_constants()
569 consts->MaxVertexAttribBindings = MAX_VERTEX_GENERIC_ATTRIBS; in _mesa_init_constants()
572 consts->MaxComputeWorkGroupCount[0] = 65535; in _mesa_init_constants()
573 consts->MaxComputeWorkGroupCount[1] = 65535; in _mesa_init_constants()
574 consts->MaxComputeWorkGroupCount[2] = 65535; in _mesa_init_constants()
575 consts->MaxComputeWorkGroupSize[0] = 1024; in _mesa_init_constants()
576 consts->MaxComputeWorkGroupSize[1] = 1024; in _mesa_init_constants()
577 consts->MaxComputeWorkGroupSize[2] = 64; in _mesa_init_constants()
579 consts->MaxComputeWorkGroupInvocations = 0; in _mesa_init_constants()
582 consts->MinFragmentInterpolationOffset = MIN_FRAGMENT_INTERPOLATION_OFFSET; in _mesa_init_constants()
583 consts->MaxFragmentInterpolationOffset = MAX_FRAGMENT_INTERPOLATION_OFFSET; in _mesa_init_constants()
586 consts->ContextReleaseBehavior = GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH; in _mesa_init_constants()
589 consts->MaxTessGenLevel = MAX_TESS_GEN_LEVEL; in _mesa_init_constants()
590 consts->MaxPatchVertices = MAX_PATCH_VERTICES; in _mesa_init_constants()
591 consts->Program[MESA_SHADER_TESS_CTRL].MaxTextureImageUnits = MAX_TEXTURE_IMAGE_UNITS; in _mesa_init_constants()
592 consts->Program[MESA_SHADER_TESS_EVAL].MaxTextureImageUnits = MAX_TEXTURE_IMAGE_UNITS; in _mesa_init_constants()
593 consts->MaxTessPatchComponents = MAX_TESS_PATCH_COMPONENTS; in _mesa_init_constants()
594 consts->MaxTessControlTotalOutputComponents = MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS; in _mesa_init_constants()
595 consts->PrimitiveRestartForPatches = false; in _mesa_init_constants()
598 consts->MaxComputeVariableGroupSize[0] = 512; in _mesa_init_constants()
599 consts->MaxComputeVariableGroupSize[1] = 512; in _mesa_init_constants()
600 consts->MaxComputeVariableGroupSize[2] = 64; in _mesa_init_constants()
601 consts->MaxComputeVariableGroupInvocations = 512; in _mesa_init_constants()
604 consts->MaxSubpixelPrecisionBiasBits = 0; in _mesa_init_constants()
607 consts->ConservativeRasterDilateRange[0] = 0.0; in _mesa_init_constants()
608 consts->ConservativeRasterDilateRange[1] = 0.0; in _mesa_init_constants()
609 consts->ConservativeRasterDilateGranularity = 0.0; in _mesa_init_constants()
611 consts->glBeginEndBufferSize = 512 * 1024; in _mesa_init_constants()