Lines Matching refs:has_feature

359 static inline bool has_feature(enum features_id feature_id)  in has_feature()  function
823 return has_feature(feat_texture_view) && in vrend_format_can_texture_view()
1437 if (!has_feature(feat_ubo)) in bind_ubo_locs()
1466 if (!has_feature(feat_ssbo)) in bind_ssbo_locs()
1494 if (!has_feature(feat_images)) in bind_image_locs()
1605 if (has_feature(feat_dual_src_blend)) { in add_shader_program()
1613 if (has_feature(feat_dual_src_blend)) { in add_shader_program()
1622 if (has_feature(feat_gles31_vertex_attrib_binding)) { in add_shader_program()
1697 if (!has_feature(feat_gles31_vertex_attrib_binding)) { in add_shader_program()
1814 if (has_feature(feat_transform_feedback2)) in vrend_destroy_streamout_object()
1942 if (has_feature(feat_transform_feedback2)) in vrend_destroy_so_target_object()
1945 if (sub_ctx->current_so && has_feature(feat_transform_feedback2)) in vrend_destroy_so_target_object()
1959 if (has_feature(feat_gles31_vertex_attrib_binding)) { in vrend_destroy_vertex_elements_object()
1969 if (has_feature(feat_samplers)) in vrend_destroy_sampler_state_object()
2022 if (has_feature(feat_sampler_border_colors)) { in apply_sampler_border_color()
2041 if (has_feature(feat_samplers)) { in vrend_create_sampler_state()
2076 if (has_feature(feat_samplers)) in vrend_create_sampler_state()
2243 if (has_feature(feat_stencil_texturing)) { in vrend_create_sampler_view()
2262 has_feature(feat_texture_srgb_decode)) { in vrend_create_sampler_view()
2448 if (has_feature(feat_srgb_write_control)) { in vrend_hw_emit_framebuffer_state()
2452 } else if (has_feature(feat_srgb_write_control)) { in vrend_hw_emit_framebuffer_state()
2594 if (has_feature(feat_fb_no_attach)) { in vrend_set_framebuffer_state_no_attach()
2769 if (has_feature(feat_gles31_vertex_attrib_binding)) { in vrend_create_vertex_elements_state()
2849 if (!has_feature(feat_ubo)) in vrend_set_uniform_buffer()
2991 if (has_feature(feat_stencil_texturing)) { in vrend_set_single_sampler_view()
3025 if (has_feature(feat_samplers)) in vrend_set_single_sampler_view()
3027 else if (has_feature(feat_texture_srgb_decode)) { in vrend_set_single_sampler_view()
3042 if (has_feature(feat_texture_buffer_range)) { in vrend_set_single_sampler_view()
3083 if (!has_feature(feat_images)) in vrend_set_single_image_view()
3113 if (!has_feature(feat_ssbo)) in vrend_set_single_ssbo()
3142 if (!has_feature(feat_atomic_counters)) in vrend_set_single_abo()
3168 if (!has_feature(feat_barrier)) in vrend_memory_barrier()
3194 if (has_feature(feat_ssbo_barrier)) in vrend_memory_barrier()
3197 if (has_feature(feat_qbo) && (flags & PIPE_BARRIER_QUERY_BUFFER)) in vrend_memory_barrier()
3206 if (has_feature(feat_texture_barrier) && (flags & PIPE_TEXTURE_BARRIER_SAMPLER)) in vrend_texture_barrier()
3208 if (has_feature(feat_blend_equation_advanced) && (flags & PIPE_TEXTURE_BARRIER_FRAMEBUFFER)) in vrend_texture_barrier()
3221 if (has_feature(feat_framebuffer_fetch_non_coherent) || in can_emulate_logicop()
3222 has_feature(feat_framebuffer_fetch)) in can_emulate_logicop()
3284 key->fs_logicop_emulate_coherent = !has_feature(feat_framebuffer_fetch_non_coherent); in vrend_fill_shader_key()
3563 !has_feature(feat_geometry_shader)) in vrend_create_shader()
3568 !has_feature(feat_tessellation)) in vrend_create_shader()
3572 !has_feature(feat_compute_shader)) in vrend_create_shader()
3777 has_feature(feat_indep_blend)) { in vrend_clear()
3861 has_feature(feat_indep_blend)) { in vrend_clear()
3931 if (idx > 0 && has_feature(feat_viewport_array)) in vrend_update_scissor_state()
3951 if (idx > 0 && has_feature(feat_viewport_array)) in vrend_update_viewport_state()
3956 if (idx && has_feature(feat_viewport_array)) in vrend_update_viewport_state()
4050 if (vrend_state.use_explicit_locations || has_feature(feat_gles31_vertex_attrib_binding)) { in vrend_draw_bind_vertex_legacy()
4137 if (has_feature(feat_bind_vertex_buffers)) { in vrend_draw_bind_vertex_binding()
4252 if (!has_feature(feat_ubo)) in vrend_draw_bind_ubo_shader()
4303 if (!has_feature(feat_ssbo)) in vrend_draw_bind_ssbo_shader()
4336 if (!has_feature(feat_atomic_counters)) in vrend_draw_bind_abo_shader()
4364 if (!has_feature(feat_images)) in vrend_draw_bind_images_shader()
4385 if (has_feature(feat_arb_or_gles_ext_texture_buffer)) in vrend_draw_bind_images_shader()
4592 if (info->instance_count && !has_feature(feat_draw_instance)) in vrend_draw_vbo()
4595 if (info->start_instance && !has_feature(feat_base_instance)) in vrend_draw_vbo()
4598 if (info->indirect.draw_count > 1 && !has_feature(feat_multi_draw_indirect)) in vrend_draw_vbo()
4602 if (!has_feature(feat_indirect_draw)) in vrend_draw_vbo()
4613 if (!has_feature(feat_indirect_params)) in vrend_draw_vbo()
4676 if (has_feature(feat_gles31_vertex_attrib_binding)) in vrend_draw_vbo()
4710 } else if (has_feature(feat_nv_prim_restart)) { in vrend_draw_vbo()
4713 } else if (has_feature(feat_gl_prim_restart)) { in vrend_draw_vbo()
4719 if (has_feature(feat_indirect_draw)) { in vrend_draw_vbo()
4726 if (has_feature(feat_indirect_params)) { in vrend_draw_vbo()
4735 if (info->vertices_per_patch && has_feature(feat_tessellation)) in vrend_draw_vbo()
4746 bool use_advanced_blending = !has_feature(feat_framebuffer_fetch) && in vrend_draw_vbo()
4747 has_feature(feat_blend_equation_advanced) && in vrend_draw_vbo()
4819 } else if (has_feature(feat_nv_prim_restart)) { in vrend_draw_vbo()
4821 } else if (has_feature(feat_gl_prim_restart)) { in vrend_draw_vbo()
4826 if (sub_ctx->current_so && has_feature(feat_transform_feedback2)) { in vrend_draw_vbo()
4844 if (!has_feature(feat_compute_shader)) in vrend_launch_grid()
5069 has_feature(feat_indep_blend) && in vrend_hw_emit_blend()
5070 has_feature(feat_indep_blend_func)) { in vrend_hw_emit_blend()
5078 if (dual_src && !has_feature(feat_dual_src_blend)) { in vrend_hw_emit_blend()
5104 if (dual_src && !has_feature(feat_dual_src_blend)) { in vrend_hw_emit_blend()
5132 if (has_feature(feat_multisample)) { in vrend_hw_emit_blend()
5364 if (has_feature(feat_depth_clamp)) { in vrend_hw_emit_rs()
5452 if (has_feature(feat_clip_control)) { in vrend_hw_emit_rs()
5475 if (!vrend_state.use_gles && has_feature(feat_polygon_offset_clamp)) in vrend_hw_emit_rs()
5590 if (has_feature(feat_multisample)) { in vrend_hw_emit_rs()
5591 if (has_feature(feat_sample_mask)) { in vrend_hw_emit_rs()
5606 if (has_feature(feat_sample_shading)) { in vrend_hw_emit_rs()
5736 if (has_feature(feat_samplers)) { in vrend_apply_sampler_state()
6187 if (!has_feature(feat_arb_robustness) && in vrend_renderer_init()
6188 !has_feature(feat_gles_khr_robustness)) { in vrend_renderer_init()
6202 if (has_feature(feat_debug_cb)) { in vrend_renderer_init()
6218 if (has_feature(feat_debug_cb)) { in vrend_renderer_init()
6280 if (!has_feature(feat_gles31_vertex_attrib_binding)) { in vrend_destroy_sub_context()
6415 grctx->shader_cfg.has_arrays_of_arrays = has_feature(feat_arrays_of_arrays); in vrend_create_context()
6416 grctx->shader_cfg.has_gpu_shader5 = has_feature(feat_gpu_shader5); in vrend_create_context()
6417 grctx->shader_cfg.has_es31_compat = has_feature(feat_gles31_compatibility); in vrend_create_context()
6418 grctx->shader_cfg.has_conservative_depth = has_feature(feat_conservative_depth); in vrend_create_context()
6420 grctx->shader_cfg.has_dual_src_blend = has_feature(feat_dual_src_blend); in vrend_create_context()
6449 bool format_can_texture_storage = has_feature(feat_texture_storage) && in check_resource_valid()
6454 if (!has_feature(feat_texture_multisample)) { in check_resource_valid()
6517 if (!has_feature(feat_cube_map_array)) { in check_resource_valid()
6532 if (!has_feature(feat_texture_array)) { in check_resource_valid()
6561 if (args->bind == VIRGL_BIND_QUERY_BUFFER && !has_feature(feat_qbo)) { in check_resource_valid()
6565 if (args->bind == VIRGL_BIND_COMMAND_ARGS && !has_feature(feat_indirect_draw)) { in check_resource_valid()
6690 if (has_feature(feat_arb_buffer_storage)) { in vrend_create_buffer()
6695 else if (has_feature(feat_memory_object_fd) && has_feature(feat_memory_object)) { in vrend_create_buffer()
6786 if (has_feature(feat_arb_or_gles_ext_texture_buffer)) { in vrend_resource_alloc_buffer()
6877 const bool format_can_texture_storage = has_feature(feat_texture_storage) && in vrend_resource_fixup_emulated_bgra()
6889 if (imported && !has_feature(feat_egl_image_storage)) in vrend_resource_fixup_emulated_bgra()
6894 !has_feature(feat_egl_image_storage)) in vrend_resource_fixup_emulated_bgra()
6910 const bool format_can_texture_storage = has_feature(feat_texture_storage) && in vrend_resource_alloc_texture()
6953 has_feature(feat_egl_image_storage)) { in vrend_resource_alloc_texture()
6955 } else if (has_feature(feat_egl_image_external)) { in vrend_resource_alloc_texture()
7768 if (has_feature(feat_arb_robustness)) { in vrend_transfer_send_getteximage()
7776 if (has_feature(feat_arb_robustness)) { in vrend_transfer_send_getteximage()
7809 if (has_feature(feat_arb_robustness)) in do_readpixels()
7811 else if (has_feature(feat_gles_khr_robustness)) in do_readpixels()
7860 if (actually_invert && !has_feature(feat_mesa_invert)) in vrend_transfer_send_readpixels()
7891 if (has_feature(feat_mesa_invert) && actually_invert) in vrend_transfer_send_readpixels()
7959 if (has_feature(feat_mesa_invert) && actually_invert) in vrend_transfer_send_readpixels()
8342 if (has_feature(feat_sample_mask)) in vrend_set_sample_mask()
8354 if (has_feature(feat_sample_shading)) in vrend_set_min_samples()
8360 if (has_feature(feat_tessellation)) { in vrend_set_tess_state()
8392 if (!has_feature(feat_transform_feedback)) in vrend_set_streamout_targets()
8413 if (has_feature(feat_transform_feedback2)) { in vrend_set_streamout_targets()
8435 if (has_feature(feat_transform_feedback2)) in vrend_set_streamout_targets()
8555 if (has_feature(feat_arb_robustness)) in vrend_resource_copy_fallback()
8560 if (has_feature(feat_arb_robustness)) in vrend_resource_copy_fallback()
8700 if (has_feature(feat_copy_image) && in vrend_renderer_resource_copy_region()
8853 if (has_feature(feat_ms_scaled_blit)) in vrend_renderer_blit_int()
8910 if (has_feature(feat_texture_view)) in vrend_renderer_blit_int()
8913 if ((dst_res->base.format != info->dst.format) && has_feature(feat_texture_view)) in vrend_renderer_blit_int()
8920 has_feature(feat_texture_srgb_decode), in vrend_renderer_blit_int()
8921 has_feature(feat_srgb_write_control), in vrend_renderer_blit_int()
9028 if (has_feature(feat_srgb_write_control)) { in vrend_renderer_blit_int()
9063 if (has_feature(feat_srgb_write_control)) { in vrend_renderer_blit_int()
9146 if (has_feature(feat_copy_image) && in vrend_renderer_blit()
9440 if (!has_feature(feat_occlusion_query) && query_type == PIPE_QUERY_OCCLUSION_COUNTER) { in vrend_create_query()
9447 !has_feature(feat_occlusion_query_boolean)) { in vrend_create_query()
9469 if (has_feature(feat_occlusion_query_boolean)) { in vrend_create_query()
9475 if (!has_feature(feat_timer_query)) in vrend_create_query()
9480 if (!has_feature(feat_timer_query)) in vrend_create_query()
9494 if (!has_feature(feat_transform_feedback_overflow_query)) in vrend_create_query()
9499 if (!has_feature(feat_transform_feedback_overflow_query)) in vrend_create_query()
9541 if (q->index > 0 && !has_feature(feat_transform_feedback3)) in vrend_begin_query()
9563 if (q->index > 0 && !has_feature(feat_transform_feedback3)) in vrend_end_query()
9567 if (q->gltype == GL_TIMESTAMP && !has_feature(feat_timer_query)) { in vrend_end_query()
9623 if (!has_feature(feat_qbo)) in vrend_get_query_result_qbo()
9704 if (has_feature(feat_gl_conditional_render)) in vrend_pause_render_condition()
9706 else if (has_feature(feat_nv_conditional_render)) in vrend_pause_render_condition()
9711 if (has_feature(feat_gl_conditional_render)) in vrend_pause_render_condition()
9714 else if (has_feature(feat_nv_conditional_render)) in vrend_pause_render_condition()
9730 if (has_feature(feat_gl_conditional_render)) in vrend_render_condition()
9732 else if (has_feature(feat_nv_conditional_render)) in vrend_render_condition()
9743 if (condition && !has_feature(feat_conditional_render_inverted)) in vrend_render_condition()
9764 if (has_feature(feat_gl_conditional_render)) in vrend_render_condition()
9766 if (has_feature(feat_nv_conditional_render)) in vrend_render_condition()
9853 if (has_feature(feat_tessellation) && in vrend_fill_caps_glsl_version()
9854 has_feature(feat_geometry_shader) && in vrend_fill_caps_glsl_version()
9855 has_feature(feat_gpu_shader5)) { in vrend_fill_caps_glsl_version()
9863 if (has_feature(feat_separate_shader_objects)) { in vrend_fill_caps_glsl_version()
9872 if (has_feature(feat_compute_shader)) in vrend_fill_caps_glsl_version()
9925 if (caps->v1.glsl_level >= 400 || has_feature(feat_tessellation)) in vrend_renderer_fill_caps_v1()
9931 if (has_feature(feat_nv_conditional_render) || in vrend_renderer_fill_caps_v1()
9932 has_feature(feat_gl_conditional_render)) in vrend_renderer_fill_caps_v1()
9935 if (has_feature(feat_indep_blend)) in vrend_renderer_fill_caps_v1()
9938 if (has_feature(feat_draw_instance)) in vrend_renderer_fill_caps_v1()
9941 if (has_feature(feat_ubo)) { in vrend_renderer_fill_caps_v1()
9946 if (has_feature(feat_depth_clamp)) in vrend_renderer_fill_caps_v1()
9963 if (has_feature(feat_texture_multisample)) in vrend_renderer_fill_caps_v1()
9966 if (has_feature(feat_tessellation)) in vrend_renderer_fill_caps_v1()
9969 if (has_feature(feat_sample_shading)) in vrend_renderer_fill_caps_v1()
9972 if (has_feature(feat_indirect_draw)) in vrend_renderer_fill_caps_v1()
9975 if (has_feature(feat_indep_blend_func)) in vrend_renderer_fill_caps_v1()
9978 if (has_feature(feat_cube_map_array)) in vrend_renderer_fill_caps_v1()
9981 if (has_feature(feat_texture_query_lod)) in vrend_renderer_fill_caps_v1()
9993 if (has_feature(feat_base_instance)) in vrend_renderer_fill_caps_v1()
10000 if (has_feature(feat_conditional_render_inverted)) in vrend_renderer_fill_caps_v1()
10007 if (has_feature(feat_cull_distance)) in vrend_renderer_fill_caps_v1()
10013 if (has_feature(feat_polygon_offset_clamp)) in vrend_renderer_fill_caps_v1()
10016 if (has_feature(feat_transform_feedback_overflow_query)) in vrend_renderer_fill_caps_v1()
10025 if (has_feature(feat_texture_array)) { in vrend_renderer_fill_caps_v1()
10031 if (has_feature(feat_transform_feedback)) { in vrend_renderer_fill_caps_v1()
10032 if (has_feature(feat_transform_feedback2)) in vrend_renderer_fill_caps_v1()
10035 if (has_feature(feat_transform_feedback3)) { in vrend_renderer_fill_caps_v1()
10048 if (has_feature(feat_dual_src_blend)) { in vrend_renderer_fill_caps_v1()
10053 if (has_feature(feat_arb_or_gles_ext_texture_buffer)) { in vrend_renderer_fill_caps_v1()
10058 if (has_feature(feat_texture_gather)) { in vrend_renderer_fill_caps_v1()
10067 if (has_feature(feat_viewport_array)) { in vrend_renderer_fill_caps_v1()
10094 if (has_feature(feat_nv_prim_restart) || in vrend_renderer_fill_caps_v1()
10095 has_feature(feat_gl_prim_restart)) { in vrend_renderer_fill_caps_v1()
10156 if (has_feature(feat_geometry_shader)) { in vrend_renderer_fill_caps_v2()
10161 if (has_feature(feat_tessellation)) { in vrend_renderer_fill_caps_v2()
10167 if (has_feature(feat_texture_gather)) { in vrend_renderer_fill_caps_v2()
10172 if (has_feature(feat_texture_buffer_range)) { in vrend_renderer_fill_caps_v2()
10176 if (has_feature(feat_ssbo)) { in vrend_renderer_fill_caps_v2()
10191 if (has_feature(feat_images)) { in vrend_renderer_fill_caps_v2()
10205 if (has_feature(feat_storage_multisample)) in vrend_renderer_fill_caps_v2()
10218 if (has_feature(feat_compute_shader) && (vrend_state.use_gles || gl_ver >= 33)) { in vrend_renderer_fill_caps_v2()
10231 if (has_feature(feat_atomic_counters)) { in vrend_renderer_fill_caps_v2()
10241 if (has_feature(feat_geometry_shader)) { in vrend_renderer_fill_caps_v2()
10248 if (has_feature(feat_tessellation)) { in vrend_renderer_fill_caps_v2()
10259 if (has_feature(feat_compute_shader)) { in vrend_renderer_fill_caps_v2()
10272 if (has_feature(feat_fb_no_attach)) in vrend_renderer_fill_caps_v2()
10275 if (has_feature(feat_texture_view)) in vrend_renderer_fill_caps_v2()
10278 if (has_feature(feat_txqs)) in vrend_renderer_fill_caps_v2()
10281 if (has_feature(feat_barrier)) in vrend_renderer_fill_caps_v2()
10284 if (has_feature(feat_copy_image)) in vrend_renderer_fill_caps_v2()
10287 if (has_feature(feat_robust_buffer_access)) in vrend_renderer_fill_caps_v2()
10290 if (has_feature(feat_framebuffer_fetch)) in vrend_renderer_fill_caps_v2()
10293 if (has_feature(feat_shader_clock)) in vrend_renderer_fill_caps_v2()
10296 if (has_feature(feat_texture_barrier)) in vrend_renderer_fill_caps_v2()
10301 if (has_feature(feat_enhanced_layouts)) in vrend_renderer_fill_caps_v2()
10304 if (has_feature(feat_srgb_write_control)) in vrend_renderer_fill_caps_v2()
10307 if (has_feature(feat_transform_feedback3)) in vrend_renderer_fill_caps_v2()
10317 if (has_feature(feat_qbo)) in vrend_renderer_fill_caps_v2()
10331 if (has_feature(feat_indirect_draw)) in vrend_renderer_fill_caps_v2()
10334 if (has_feature(feat_multi_draw_indirect)) in vrend_renderer_fill_caps_v2()
10337 if (has_feature(feat_indirect_params)) in vrend_renderer_fill_caps_v2()
10354 if (has_feature(feat_clear_texture)) in vrend_renderer_fill_caps_v2()
10357 if (has_feature(feat_clip_control)) in vrend_renderer_fill_caps_v2()
10368 if (has_feature(feat_arb_buffer_storage) && !vrend_state.use_external_blob) { in vrend_renderer_fill_caps_v2()
10397 if (has_feature(feat_memory_object) && has_feature(feat_memory_object_fd)) { in vrend_renderer_fill_caps_v2()
10403 if (has_feature(feat_blend_equation_advanced)) in vrend_renderer_fill_caps_v2()
10417 if (has_feature(feat_ati_meminfo) || has_feature(feat_nvx_gpu_memory_info)) { in vrend_renderer_fill_caps_v2()
10519 if (has_feature(feat_arb_robustness)) { in vrend_renderer_get_cursor_contents()
10702 if (has_feature(feat_debug_cb)) { in vrend_renderer_create_sub_ctx()
10715 if (!has_feature(feat_gles31_vertex_attrib_binding)) { in vrend_renderer_create_sub_ctx()
11104 if (has_feature(feat_nvx_gpu_memory_info)) { in vrend_renderer_get_meminfo()
11116 if (has_feature(feat_ati_meminfo)) { in vrend_renderer_get_meminfo()