radv: flush smem for uniform buffer bit.
authorDave Airlie <airlied@redhat.com>
Wed, 21 Dec 2016 22:09:46 +0000 (22:09 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 21 Dec 2016 22:31:14 +0000 (22:31 +0000)
(cc'ing stable as I'd like to backport the ubo speedup as well)

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c

index 0572cb85e5681d48db6c34b818df5812191ac495..d29432b64e82580ec6e0af1d1ab7ffd076fca666 100644 (file)
@@ -2550,9 +2550,11 @@ void radv_CmdPipelineBarrier(
                case VK_ACCESS_INDIRECT_COMMAND_READ_BIT:
                case VK_ACCESS_INDEX_READ_BIT:
                case VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT:
-               case VK_ACCESS_UNIFORM_READ_BIT:
                        flush_bits |= RADV_CMD_FLAG_INV_VMEM_L1;
                        break;
+               case VK_ACCESS_UNIFORM_READ_BIT:
+                       flush_bits |= RADV_CMD_FLAG_INV_VMEM_L1 | RADV_CMD_FLAG_INV_SMEM_L1;
+                       break;
                case VK_ACCESS_SHADER_READ_BIT:
                        flush_bits |= RADV_CMD_FLAG_INV_GLOBAL_L2;
                        break;