Lines Matching refs:screen

75 void st_init_limits(struct pipe_screen *screen,  in st_init_limits()  argument
86 = _min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS), in st_init_limits()
90 = _min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_3D_LEVELS), in st_init_limits()
94 = _min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS), in st_init_limits()
101 = screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS); in st_init_limits()
112 screen->get_param(screen, PIPE_CAP_VIEWPORT_SUBPIXEL_BITS); in st_init_limits()
115 _clamp(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS), in st_init_limits()
119 _clamp(screen->get_param(screen, in st_init_limits()
124 _maxf(1.0f, screen->get_paramf(screen, PIPE_CAPF_MAX_LINE_WIDTH)); in st_init_limits()
126 _maxf(1.0f, screen->get_paramf(screen, PIPE_CAPF_MAX_LINE_WIDTH_AA)); in st_init_limits()
129 _maxf(1.0f, screen->get_paramf(screen, PIPE_CAPF_MAX_POINT_WIDTH)); in st_init_limits()
131 _maxf(1.0f, screen->get_paramf(screen, PIPE_CAPF_MAX_POINT_WIDTH_AA)); in st_init_limits()
141 screen->get_paramf(screen, PIPE_CAPF_MAX_TEXTURE_ANISOTROPY)); in st_init_limits()
144 screen->get_paramf(screen, PIPE_CAPF_MAX_TEXTURE_LOD_BIAS); in st_init_limits()
147 screen->get_param(screen, in st_init_limits()
151 screen->get_shader_param(screen, PIPE_SHADER_FRAGMENT, in st_init_limits()
186 if (!screen->get_param(screen, PIPE_CAP_COMPUTE)) in st_init_limits()
189 screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_SUPPORTED_IRS); in st_init_limits()
198 _min(screen->get_shader_param(screen, sh, in st_init_limits()
204 screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_INSTRUCTIONS); in st_init_limits()
207 screen->get_shader_param(screen, sh, in st_init_limits()
211 screen->get_shader_param(screen, sh, in st_init_limits()
215 screen->get_shader_param(screen, sh, in st_init_limits()
219 screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_INPUTS); in st_init_limits()
222 screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_TEMPS); in st_init_limits()
227 screen->get_shader_param(screen, sh, in st_init_limits()
230 screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_INPUTS) * 4; in st_init_limits()
232 screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_OUTPUTS) * 4; in st_init_limits()
238 screen->get_shader_param(screen, sh, in st_init_limits()
248 temp = screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTERS); in st_init_limits()
256 …pc->MaxAtomicBuffers = screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTER_… in st_init_limits()
257 …pc->MaxShaderStorageBlocks = screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_SHADER_BUFFE… in st_init_limits()
260 …pc->MaxAtomicBuffers = screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_SHADER_BUFFERS) / … in st_init_limits()
263 pc->MaxImageUniforms = screen->get_shader_param( in st_init_limits()
264 screen, sh, PIPE_SHADER_CAP_MAX_SHADER_IMAGES); in st_init_limits()
272 if (screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_INTEGERS)) { in st_init_limits()
281 screen->get_shader_param(screen, sh, in st_init_limits()
284 !screen->get_shader_param(screen, sh, in st_init_limits()
287 !screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_SUBROUTINES); in st_init_limits()
290 !screen->get_shader_param(screen, sh, in st_init_limits()
294 !screen->get_shader_param(screen, sh, in st_init_limits()
297 !screen->get_shader_param(screen, sh, in st_init_limits()
300 !screen->get_shader_param(screen, sh, in st_init_limits()
303 !screen->get_shader_param(screen, sh, in st_init_limits()
313 MIN2(screen->get_shader_param(screen, sh, in st_init_limits()
318 screen->get_shader_param(screen, sh, in st_init_limits()
326 screen->get_param(screen, PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY); in st_init_limits()
330 screen->get_param(screen, PIPE_CAP_PRIMITIVE_RESTART_FOR_PATCHES); in st_init_limits()
355 c->MaxVarying = screen->get_shader_param(screen, PIPE_SHADER_FRAGMENT, in st_init_limits()
359 screen->get_param(screen, PIPE_CAP_MAX_GEOMETRY_OUTPUT_VERTICES); in st_init_limits()
361 screen->get_param(screen, PIPE_CAP_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS); in st_init_limits()
363 MIN2(screen->get_param(screen, PIPE_CAP_MAX_SHADER_PATCH_VARYINGS), in st_init_limits()
367 screen->get_param(screen, PIPE_CAP_MIN_TEXEL_OFFSET); in st_init_limits()
369 screen->get_param(screen, PIPE_CAP_MAX_TEXEL_OFFSET); in st_init_limits()
372 screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS); in st_init_limits()
374 screen->get_param(screen, PIPE_CAP_MIN_TEXTURE_GATHER_OFFSET); in st_init_limits()
376 screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_GATHER_OFFSET); in st_init_limits()
379 screen->get_param(screen, PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS); in st_init_limits()
383 screen->get_param(screen, PIPE_CAP_MAX_STREAM_OUTPUT_SEPARATE_COMPONENTS); in st_init_limits()
385 screen->get_param(screen, in st_init_limits()
388 MAX2(1, screen->get_param(screen, PIPE_CAP_MAX_VERTEX_STREAMS)); in st_init_limits()
394 = screen->get_param(screen, PIPE_CAP_MAX_VERTEX_ATTRIB_STRIDE); in st_init_limits()
399 screen->get_param(screen, PIPE_CAP_TGSI_CAN_COMPACT_CONSTANTS); in st_init_limits()
402 screen->get_param(screen, PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT); in st_init_limits()
417 screen->get_param(screen, PIPE_CAP_TGSI_FS_POSITION_IS_SYSVAL); in st_init_limits()
419 screen->get_param(screen, PIPE_CAP_TGSI_FS_FACE_IS_INTEGER_SYSVAL); in st_init_limits()
428 screen->get_disk_shader_cache && screen->get_disk_shader_cache(screen)) in st_init_limits()
460 screen->get_param(screen, PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT); in st_init_limits()
496 screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS); in st_init_limits()
499 screen->get_param(screen, PIPE_CAP_MAX_WINDOW_RECTANGLES); in st_init_limits()
502 screen->get_param(screen, PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE); in st_init_limits()
505 screen->get_param(screen, PIPE_CAP_ALLOW_MAPPED_BUFFERS_DURING_EXECUTION); in st_init_limits()
508 screen->get_param(screen, PIPE_CAP_LOAD_CONSTBUF); in st_init_limits()
511 temp = screen->get_param(screen, PIPE_CAP_MAX_COMBINED_SHADER_OUTPUT_RESOURCES); in st_init_limits()
546 init_format_extensions(struct pipe_screen *screen, in init_format_extensions() argument
564 if (screen->is_format_supported(screen, mapping[i].format[j], in init_format_extensions()
587 get_max_samples_for_formats(struct pipe_screen *screen, in get_max_samples_for_formats() argument
597 if (screen->is_format_supported(screen, formats[f], in get_max_samples_for_formats()
614 void st_init_extensions(struct pipe_screen *screen, in st_init_extensions() argument
918 if (screen->get_param(screen, cap_mapping[i].cap)) { in st_init_extensions()
924 init_format_extensions(screen, extensions, rendertarget_mapping, in st_init_extensions()
927 init_format_extensions(screen, extensions, depthstencil_mapping, in st_init_extensions()
930 init_format_extensions(screen, extensions, texture_mapping, in st_init_extensions()
933 init_format_extensions(screen, extensions, vertex_mapping, in st_init_extensions()
938 consts->GLSLVersion = screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL); in st_init_extensions()
965 screen->get_param(screen, PIPE_CAP_TGSI_VS_LAYER_VIEWPORT)) { in st_init_extensions()
970 if (screen->get_param(screen, PIPE_CAP_TGSI_ARRAY_COMPONENTS)) in st_init_extensions()
978 if (screen->get_param(screen, PIPE_CAP_VERTEXID_NOBASE)) { in st_init_extensions()
998 if (screen->get_shader_param(screen, PIPE_SHADER_VERTEX, in st_init_extensions()
1000 screen->get_shader_param(screen, PIPE_SHADER_FRAGMENT, in st_init_extensions()
1017 if (screen->get_shader_param(screen, PIPE_SHADER_TESS_CTRL, in st_init_extensions()
1027 screen->get_shader_param(screen, PIPE_SHADER_GEOMETRY, in st_init_extensions()
1061 get_max_samples_for_formats(screen, ARRAY_SIZE(color_formats), in st_init_extensions()
1066 get_max_samples_for_formats(screen, ARRAY_SIZE(color_formats), in st_init_extensions()
1071 get_max_samples_for_formats(screen, ARRAY_SIZE(color_formats), in st_init_extensions()
1076 get_max_samples_for_formats(screen, ARRAY_SIZE(depth_formats), in st_init_extensions()
1081 get_max_samples_for_formats(screen, ARRAY_SIZE(int_formats), in st_init_extensions()
1087 get_max_samples_for_formats(screen, ARRAY_SIZE(void_formats), in st_init_extensions()
1098 screen->get_param(screen, PIPE_CAP_FAKE_SW_MSAA)) { in st_init_extensions()
1110 if (screen->get_param(screen, PIPE_CAP_QUERY_TIME_ELAPSED) || in st_init_extensions()
1129 screen->get_param(screen, PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT); in st_init_extensions()
1133 screen->get_param(screen, PIPE_CAP_BUFFER_SAMPLER_VIEW_RGBA_ONLY)) in st_init_extensions()
1138 _min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE), in st_init_extensions()
1141 screen->get_param(screen, PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT); in st_init_extensions()
1146 init_format_extensions(screen, extensions, tbo_rgb32, in st_init_extensions()
1162 if (screen->get_shader_param(screen, PIPE_SHADER_FRAGMENT, in st_init_extensions()
1171 consts->MaxViewports = screen->get_param(screen, PIPE_CAP_MAX_VIEWPORTS); in st_init_extensions()
1188 screen->get_param(screen, PIPE_CAP_TGSI_TES_LAYER_VIEWPORT)) in st_init_extensions()
1192 if (screen->get_param(screen, PIPE_CAP_FRAMEBUFFER_NO_ATTACHMENT) && in st_init_extensions()
1205 screen->is_format_supported(screen, PIPE_FORMAT_R8G8B8A8_UNORM, in st_init_extensions()
1208 screen->is_format_supported(screen, PIPE_FORMAT_B8G8R8A8_SRGB, in st_init_extensions()
1211 screen->is_format_supported(screen, PIPE_FORMAT_R16_UNORM, in st_init_extensions()
1214 screen->is_format_supported(screen, PIPE_FORMAT_R16G16_UNORM, in st_init_extensions()
1217 screen->is_format_supported(screen, PIPE_FORMAT_R16_SNORM, in st_init_extensions()
1220 screen->is_format_supported(screen, PIPE_FORMAT_R16G16_SNORM, in st_init_extensions()
1227 if (screen->get_video_param && in st_init_extensions()
1228 screen->get_video_param(screen, PIPE_VIDEO_PROFILE_UNKNOWN, in st_init_extensions()
1235 if (screen->get_param(screen, PIPE_CAP_DOUBLES)) { in st_init_extensions()
1241 screen->get_param(screen, PIPE_CAP_STRING_MARKER)) in st_init_extensions()
1244 if (screen->get_param(screen, PIPE_CAP_COMPUTE)) { in st_init_extensions()
1246 screen->get_shader_param(screen, PIPE_SHADER_COMPUTE, in st_init_extensions()
1252 screen->get_compute_param(screen, PIPE_SHADER_IR_TGSI, in st_init_extensions()
1254 screen->get_compute_param(screen, PIPE_SHADER_IR_TGSI, in st_init_extensions()
1256 screen->get_compute_param(screen, PIPE_SHADER_IR_TGSI, in st_init_extensions()
1259 screen->get_compute_param(screen, PIPE_SHADER_IR_TGSI, in st_init_extensions()
1278 screen->get_compute_param(screen, PIPE_SHADER_IR_TGSI, in st_init_extensions()
1300 screen->get_paramf(screen, PIPE_CAPF_MAX_TEXTURE_ANISOTROPY) >= 16.0) in st_init_extensions()