mesa/src/intel/vulkan
Neil Roberts c366f422f0 nir: Offset vertex_id by first_vertex instead of base_vertex
base_vertex will be zero for non-indexed calls and in that case we
need vertex_id to be offset by the ‘first’ parameter instead. That is
what we get with first_vertex. This is true for both GL and Vulkan.

The freedreno driver is also setting vertex_id_zero_based on
nir_options. In order to avoid breakage this patch switches the
relevant code to handle SYSTEM_VALUE_FIRST_VERTEX so that it can
retain the same behavior.

v2: change a3xx/fd3_emit.c and a4xx/fd4_emit.c from
SYSTEM_VALUE_BASE_VERTEX to SYSTEM_VALUE_FIRST_VERTEX (Kenneth).

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: Rob Clark <robdclark@gmail.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
2018-04-19 15:57:45 -07:00
..
tests anv: setup BO flags at state_pool/block_pool creation 2017-11-22 22:53:27 +00:00
.gitignore anv: put anv_extensions.c in gitignore 2017-08-03 16:14:45 +01:00
anv_allocator.c util: Move util_is_power_of_two to bitscan.h and rename to util_is_power_of_two_or_zero 2018-03-29 14:09:23 -07:00
anv_android.c vulkan: fix build issue on android (both anv/radv) 2018-04-11 13:55:49 +03:00
anv_batch_chain.c Get rid of a bunch of KHR suffixes 2018-03-07 12:13:47 -08:00
anv_blorp.c anv: Make blorp update the clear color. 2018-04-05 07:42:45 -07:00
anv_cmd_buffer.c anv: Add gen11 to anv_genX_call 2018-03-23 17:23:59 -07:00
anv_descriptor_set.c anv: off-by-one in GetDescriptorSetLayoutSupport 2018-03-20 07:58:10 -07:00
anv_device.c anv: Use clear address for HiZ fast clears too. 2018-04-05 07:42:45 -07:00
anv_dump.c anv: enable multiple planes per image/imageView 2017-10-06 16:32:20 +01:00
anv_entrypoints_gen.py anv/entrypoints: VkGetDeviceProcAddr returns NULL for core instance commands 2018-03-14 08:09:15 +01:00
anv_extensions.py anv: Enable Vulkan 1.1 2018-03-07 12:13:47 -08:00
anv_extensions_gen.py anv,radv: Drop XML workarounds for VK_ANDROID_native_buffer 2018-04-16 07:59:25 -07:00
anv_formats.c anv: Add WSI support for the I915_FORMAT_MOD_Y_TILED_CCS 2018-04-05 21:17:02 -07:00
anv_gem.c anv: remove anv_gem_set_context_priority helper 2018-02-28 19:50:54 +02:00
anv_gem_stubs.c anv: implement VK_EXT_global_priority extension 2018-02-28 14:36:57 +02:00
anv_genX.h anv/cmd_buffer: Add a mark_image_written helper 2018-02-08 16:35:31 -08:00
anv_icd.py anv_icd.py: improve reproducible builds 2018-01-26 01:37:45 -08:00
anv_image.c anv: Add WSI support for the I915_FORMAT_MOD_Y_TILED_CCS 2018-04-05 21:17:02 -07:00
anv_intel.c anv: Fix close(fd) before import issue in vkCreateDmaBufImageINTEL 2018-04-03 18:33:17 -07:00
anv_nir.h anv: Implement vkCmdDispatchBase 2018-03-07 12:13:47 -08:00
anv_nir_add_base_work_group_id.c anv: Implement vkCmdDispatchBase 2018-03-07 12:13:47 -08:00
anv_nir_apply_pipeline_layout.c nir: Rename image intrinsics to image_var 2018-03-23 13:48:11 +11:00
anv_nir_lower_input_attachments.c nir: Rename image intrinsics to image_var 2018-03-23 13:48:11 +11:00
anv_nir_lower_multiview.c util: Move util_is_power_of_two to bitscan.h and rename to util_is_power_of_two_or_zero 2018-03-29 14:09:23 -07:00
anv_nir_lower_push_constants.c spirv/i965/anv: Relax push constant offset assertions being 32-bit aligned 2018-02-28 21:37:40 -08:00
anv_nir_lower_ycbcr_textures.c Get rid of a bunch of KHR suffixes 2018-03-07 12:13:47 -08:00
anv_pass.c vulkan: Rename multiview from KHX to KHR 2018-03-07 12:13:47 -08:00
anv_pipeline.c anv/pipeline: Lower more constant initializers earlier 2018-04-09 19:45:25 -07:00
anv_pipeline_cache.c blob: Use intptr_t instead of ssize_t 2017-10-13 15:02:34 -07:00
anv_private.h anv: fix number of planes for depth & stencil 2018-04-13 11:44:53 -07:00
anv_queue.c Get rid of a bunch of KHR suffixes 2018-03-07 12:13:47 -08:00
anv_util.c anv: avoid segmentation fault due to vk_error() 2018-01-19 09:39:05 +01:00
anv_wsi.c anv: Trivially implement VK_KHR_device_group 2018-03-07 12:13:47 -08:00
anv_wsi_wayland.c anv/wsi: Don't include wayland headers 2017-03-13 11:16:30 +00:00
anv_wsi_x11.c vulkan/wsi/radv: add initial prime support (v1.1) 2017-02-27 05:42:16 +10:00
gen7_cmd_buffer.c anv/cmd_buffer: Move gen7 index buffer state to graphics state 2018-01-23 21:10:46 -08:00
gen8_cmd_buffer.c anv/cmd_buffer: Move dynamic state to graphics state 2018-01-23 21:10:43 -08:00
genX_blorp_exec.c blorp: Silence unused function warnings 2018-04-11 13:04:49 -07:00
genX_cmd_buffer.c nir: Offset vertex_id by first_vertex instead of base_vertex 2018-04-19 15:57:45 -07:00
genX_gpu_memcpy.c intel: Drop SURFACE_FORMAT enum from genxml. 2018-03-05 09:51:08 -08:00
genX_pipeline.c nir: Offset vertex_id by first_vertex instead of base_vertex 2018-04-19 15:57:45 -07:00
genX_query.c anv/cmd_buffer: Get rid of the meta query workaround 2018-01-23 21:10:20 -08:00
genX_state.c Get rid of a bunch of KHR suffixes 2018-03-07 12:13:47 -08:00
meson.build vulkan: Drop vk_android_native_buffer.xml 2018-04-10 19:29:49 -07:00
TODO anv: Implement pipeline statistics queries 2017-03-17 12:12:50 -07:00
vk_format_info.h Get rid of a bunch of KHR suffixes 2018-03-07 12:13:47 -08:00