mesa/src/intel/vulkan
Jason Ekstrand 6eb0240a32 anv/entrypoints: Rework #if guards
This reworks the #if guards a bit.  When Emil originally wrote them, he
just guarded everything.  However, part of what anv_entrypoints_gen.py
generates is a hash table for looking up entrypoints based on their name.
This table *cannot* get out of sync between C and python regardless of
preprocessor flags.  In order to prevent this, this commit makes us use
void pointers in the dispatch table for those entrypoints which aren't
available.  This means that the dispatch table size and entry order is
constant and it should never get out-of-sync with the python.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Emil Velikov <emil.velikov@collabora.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 8d37556ec9)
2016-06-15 09:29:10 +01:00
..
tests anv: fold the tests' makefile 2016-05-01 08:38:04 +01:00
.gitignore anv: update .gitignore 2016-05-01 08:38:05 +01:00
anv_allocator.c anv: remove define _DEFAULT_SOURCE 2016-05-23 12:09:11 +01:00
anv_batch_chain.c anv/batch_chain: free pointers for error cases 2016-05-18 15:14:22 -07:00
anv_cmd_buffer.c anv/pipeline: Store the (set, binding, index) tripple in the bind map 2016-06-14 15:48:40 +01:00
anv_descriptor_set.c anv/descriptor_set: Ensure that bindings are always in increasing order 2016-06-14 15:48:40 +01:00
anv_device.c anv: Remove the PhysicalDeviceLimits FINISHME 2016-06-14 15:48:40 +01:00
anv_dump.c anv: fix warnings in release build 2016-04-25 12:23:31 +02:00
anv_entrypoints_gen.py anv/entrypoints: Rework #if guards 2016-06-15 09:29:10 +01:00
anv_formats.c anv/formats: Exit early for unsupported formats 2016-05-27 17:17:09 -07:00
anv_gem.c anv: remove define _DEFAULT_SOURCE 2016-05-23 12:09:11 +01:00
anv_gem_stubs.c anv: remove define _DEFAULT_SOURCE 2016-05-23 12:09:11 +01:00
anv_genX.h anv/cmd_buffer: Only emit PIPE_CONTROL on-demand 2016-05-27 15:18:09 -07:00
anv_image.c anv: Add a devinfo argument to the get_format functions 2016-05-17 12:17:22 -07:00
anv_intel.c
anv_meta.c anv/blit2d: Customize meta blit structs and functions for blit2d API 2016-03-16 10:56:22 -07:00
anv_meta.h Revert "anv/meta: Make meta_emit_blit() public" 2016-03-16 10:56:46 -07:00
anv_meta_blit.c anv/blit: Use CLAMP_TO_EDGE for scaled blits 2016-06-14 15:48:36 +01:00
anv_meta_blit2d.c nir/builder: Add a helper for grabbing multiple channels from an ssa def 2016-05-14 13:34:40 -07:00
anv_meta_clear.c anv/clear: Handle ClearImage on 3-D images 2016-06-14 15:48:35 +01:00
anv_meta_copy.c anv/copy: Account for the anv_surface.offset when creating a blit2d_surf 2016-06-14 15:48:36 +01:00
anv_meta_resolve.c anv: Remove the anv_format member from anv_image 2016-05-17 12:17:22 -07:00
anv_nir.h anv/lower_push_constants: Stop treating scalar specially 2016-04-20 09:14:47 -07:00
anv_nir_apply_dynamic_offsets.c anv/pipeline: Only do buffer bounds checks if robustBufferAccess is enabled 2016-05-19 21:18:59 -07:00
anv_nir_apply_pipeline_layout.c anv/pipeline: Store the (set, binding, index) tripple in the bind map 2016-06-14 15:48:40 +01:00
anv_nir_lower_push_constants.c nir: Switch the arguments to nir_foreach_function 2016-04-28 15:54:48 -07:00
anv_pass.c anv: Change render_pass_attachment.format to a VkFormat 2016-05-17 12:17:22 -07:00
anv_pipeline.c anv/pipeline: Store the (set, binding, index) tripple in the bind map 2016-06-14 15:48:40 +01:00
anv_pipeline_cache.c anv/pipeline_cache: Allow for an zero-sized cache 2016-06-14 15:48:40 +01:00
anv_private.h anv/pipeline: Store the (set, binding, index) tripple in the bind map 2016-06-14 15:48:40 +01:00
anv_query.c
anv_util.c anv/util: Fix vector resizing 2016-03-03 08:17:36 -08:00
anv_wsi.c anv: resolve wayland-only build 2016-05-30 10:26:35 +01:00
anv_wsi.h anv/wsi: Make WSI per-physical-device rather than per-instance 2016-05-17 12:17:22 -07:00
anv_wsi_wayland.c anv: Fix use of uninitialized variable. 2016-05-30 10:26:35 +01:00
anv_wsi_x11.c anv/wsi: Use vk_format_info for asserts rather than anv_format 2016-05-17 12:17:22 -07:00
dev_icd.json.in
gen7_cmd_buffer.c genxml/gen6,7,75: s/BackFace/Backface 2016-06-14 15:48:35 +01:00
gen7_pipeline.c anv/pipeline: Add support for early depth stencil 2016-06-14 15:48:36 +01:00
gen8_cmd_buffer.c anv: Support new local ID generation & cross-thread constants 2016-06-02 14:01:04 +01:00
gen8_pipeline.c anv/pipeline: Store the (set, binding, index) tripple in the bind map 2016-06-14 15:48:40 +01:00
genX_cmd_buffer.c i965: Store number of threads in brw_cs_prog_data 2016-06-02 13:54:44 +01:00
genX_l3.c anv: Port L3 cache programming from i965 2016-05-17 13:04:03 -07:00
genX_pipeline.c anv: Support new local ID generation & cross-thread constants 2016-06-02 14:01:04 +01:00
genX_pipeline_util.h anv/pipeline: Silently pass tests if depth or stencil is missing 2016-06-14 15:48:36 +01:00
genX_state.c anv: Emit DRAWING_RECTANGLE once at driver initialization 2016-05-27 15:18:11 -07:00
intel_icd.json anv/intel_icd: Don't provide an absolute path 2016-04-14 15:15:00 -07:00
Makefile.am anv: add the X related and Wayland CFLAGS to VULKAN_ENTRYPOINT_CPPFLAGS 2016-06-14 15:48:35 +01:00
Makefile.sources anv: Port L3 cache programming from i965 2016-05-17 13:04:03 -07:00
TODO anv: Stop linking against libmesa.la and libdri_test_stubs.la 2016-05-26 14:13:38 -07:00
vk_format_info.h anv: Add helpers to provide simple VkFormat introspection 2016-05-17 12:17:22 -07:00