• Home
  • Raw
  • Download

Lines Matching refs:v2

70    if (vscreen->caps.caps.v2.host_feature_check_version >= 5)  in virgl_get_name()
71 return vscreen->caps.caps.v2.renderer; in virgl_get_name()
88 return vscreen->caps.caps.v2.max_anisotropy > 1.0; in virgl_get_param()
103 if (vscreen->caps.caps.v2.max_texture_2d_size) in virgl_get_param()
104 return vscreen->caps.caps.v2.max_texture_2d_size; in virgl_get_param()
107 if (vscreen->caps.caps.v2.max_texture_3d_size) in virgl_get_param()
108 return 1 + util_logbase2(vscreen->caps.caps.v2.max_texture_3d_size); in virgl_get_param()
111 if (vscreen->caps.caps.v2.max_texture_cube_size) in virgl_get_param()
112 return 1 + util_logbase2(vscreen->caps.caps.v2.max_texture_cube_size); in virgl_get_param()
129 if (vscreen->caps.caps.v2.host_feature_check_version >= 3) in virgl_get_param()
152 return vscreen->caps.caps.v2.min_texel_offset; in virgl_get_param()
154 return vscreen->caps.caps.v2.min_texture_gather_offset; in virgl_get_param()
156 return vscreen->caps.caps.v2.max_texel_offset; in virgl_get_param()
158 return vscreen->caps.caps.v2.max_texture_gather_offset; in virgl_get_param()
162 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_TEXTURE_BARRIER; in virgl_get_param()
169 return (vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_FBO_MIXED_COLOR_FORMATS) || in virgl_get_param()
170 (vscreen->caps.caps.v2.host_feature_check_version < 1); in virgl_get_param()
180 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_COMPUTE_SHADER; in virgl_get_param()
184 return vscreen->caps.caps.v2.uniform_buffer_offset_alignment; in virgl_get_param()
208 return vscreen->caps.caps.v2.texture_buffer_offset_alignment; in virgl_get_param()
229 return vscreen->caps.caps.v2.max_geom_output_vertices; in virgl_get_param()
231 return vscreen->caps.caps.v2.max_geom_total_output_components; in virgl_get_param()
244 return ((vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_TRANSFORM_FEEDBACK3) || in virgl_get_param()
245 (vscreen->caps.caps.v2.host_feature_check_version < 2)) ? 4 : 1; in virgl_get_param()
255 return vscreen->caps.caps.v2.shader_buffer_offset_alignment; in virgl_get_param()
258 (vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_FAKE_FP64); in virgl_get_param()
260 return vscreen->caps.caps.v2.max_shader_patch_varyings; in virgl_get_param()
262 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_TEXTURE_VIEW; in virgl_get_param()
264 return vscreen->caps.caps.v2.max_vertex_attrib_stride; in virgl_get_param()
266 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_COPY_IMAGE; in virgl_get_param()
268 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_TXQS; in virgl_get_param()
270 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_FB_NO_ATTACH; in virgl_get_param()
272 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_ROBUST_BUFFER_ACCESS; in virgl_get_param()
274 return (vscreen->caps.caps.v2.capability_bits & in virgl_get_param()
277 return vscreen->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_BLEND_EQUATION; in virgl_get_param()
279 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_SHADER_CLOCK; in virgl_get_param()
281 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_TGSI_COMPONENTS; in virgl_get_param()
283 return vscreen->caps.caps.v2.max_combined_shader_buffers; in virgl_get_param()
285 return vscreen->caps.caps.v2.max_combined_atomic_counters; in virgl_get_param()
287 return vscreen->caps.caps.v2.max_combined_atomic_counter_buffers; in virgl_get_param()
292 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_QBO; in virgl_get_param()
295 return vscreen->caps.caps.v2.max_vertex_attribs; in virgl_get_param()
302 return !!(vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_MULTI_DRAW_INDIRECT); in virgl_get_param()
304 return !!(vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_INDIRECT_PARAMS); in virgl_get_param()
306 return (vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_ARB_BUFFER_STORAGE) && in virgl_get_param()
307 (vscreen->caps.caps.v2.host_feature_check_version >= 4) && in virgl_get_param()
317 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_CLEAR_TEXTURE; in virgl_get_param()
319 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_CLIP_HALFZ; in virgl_get_param()
332 if (vscreen->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_VIDEO_MEMORY) in virgl_get_param()
333 return vscreen->caps.caps.v2.max_video_memory; in virgl_get_param()
338 return (vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_SRGB_WRITE_CONTROL) || in virgl_get_param()
339 (vscreen->caps.caps.v2.host_feature_check_version < 1); in virgl_get_param()
341 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_INDIRECT_INPUT_ADDR; in virgl_get_param()
348 return vscreen->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_MEMINFO; in virgl_get_param()
350 return vscreen->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_STRING_MARKER; in virgl_get_param()
352 return vscreen->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_IMPLICIT_MSAA; in virgl_get_param()
370 !(vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_COMPUTE_SHADER)) in virgl_get_shader_param()
393 return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_INDIRECT_INPUT_ADDR; in virgl_get_shader_param()
396 return vscreen->caps.caps.v2.max_vertex_attribs; in virgl_get_shader_param()
398 shader == PIPE_SHADER_GEOMETRY) ? vscreen->caps.caps.v2.max_vertex_attribs : 32; in virgl_get_shader_param()
402 return vscreen->caps.caps.v2.max_vertex_outputs; in virgl_get_shader_param()
423 return vscreen->caps.caps.v2.max_shader_buffer_frag_compute; in virgl_get_shader_param()
425 return vscreen->caps.caps.v2.max_shader_buffer_other_stages; in virgl_get_shader_param()
428 return vscreen->caps.caps.v2.max_shader_image_frag_compute; in virgl_get_shader_param()
430 return vscreen->caps.caps.v2.max_shader_image_other_stages; in virgl_get_shader_param()
436 return vscreen->caps.caps.v2.max_atomic_counters[shader]; in virgl_get_shader_param()
438 return vscreen->caps.caps.v2.max_atomic_counter_buffers[shader]; in virgl_get_shader_param()
462 return vscreen->caps.caps.v2.max_aliased_line_width; in virgl_get_paramf()
464 return vscreen->caps.caps.v2.max_smooth_line_width; in virgl_get_paramf()
466 return vscreen->caps.caps.v2.max_aliased_point_size; in virgl_get_paramf()
468 return vscreen->caps.caps.v2.max_smooth_point_size; in virgl_get_paramf()
470 return vscreen->caps.caps.v2.max_anisotropy; in virgl_get_paramf()
472 return vscreen->caps.caps.v2.max_texture_lod_bias; in virgl_get_paramf()
490 if (!(vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_COMPUTE_SHADER)) in virgl_get_compute_param()
496 grid_size[0] = vscreen->caps.caps.v2.max_compute_grid_size[0]; in virgl_get_compute_param()
497 grid_size[1] = vscreen->caps.caps.v2.max_compute_grid_size[1]; in virgl_get_compute_param()
498 grid_size[2] = vscreen->caps.caps.v2.max_compute_grid_size[2]; in virgl_get_compute_param()
504 block_size[0] = vscreen->caps.caps.v2.max_compute_block_size[0]; in virgl_get_compute_param()
505 block_size[1] = vscreen->caps.caps.v2.max_compute_block_size[1]; in virgl_get_compute_param()
506 block_size[2] = vscreen->caps.caps.v2.max_compute_block_size[2]; in virgl_get_compute_param()
512 *max_threads_per_block = vscreen->caps.caps.v2.max_compute_work_group_invocations; in virgl_get_compute_param()
519 *max_local_size = vscreen->caps.caps.v2.max_compute_shared_memory_size; in virgl_get_compute_param()
545 return has_format_bit(&vscreen->caps.caps.v2.supported_readback_formats, in virgl_has_readback_format()
637 boolean may_emulate_bgra = (caps->v2.capability_bits & in virgl_is_format_supported()
669 if (sample_count > caps->v2.max_image_samples) in virgl_is_format_supported()
727 if (!virgl_format_check_bitmask(format, caps->v2.scanout.bitmask, false)) in virgl_is_format_supported()
938 if (caps->v2.host_feature_check_version < 5) in fixup_renderer()
943 caps->v2.renderer); in fixup_renderer()
948 memcpy(caps->v2.renderer, renderer, renderer_len + 1); in fixup_renderer()
1004 &screen->caps.caps.v2.supported_readback_formats); in virgl_create_screen()
1005 fixup_formats(&screen->caps.caps, &screen->caps.caps.v2.scanout); in virgl_create_screen()