[Mesa-dev] [PATCH 2/2] anv: add an assertion in genX(BeginCommandBuffer)
Jason Ekstrand
jason at jlekstrand.net
Tue Sep 26 13:46:01 UTC 2017
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
On Tue, Sep 26, 2017 at 1:14 AM, Gwan-gyeong Mun <elongbug at gmail.com> wrote:
> To check a valid usage requirement.
>
> Signed-off-by: Mun Gwan-gyeong <elongbug at gmail.com>
> ---
> src/intel/vulkan/genX_cmd_buffer.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/intel/vulkan/genX_cmd_buffer.c
> b/src/intel/vulkan/genX_cmd_buffer.c
> index fbc1995709..3559399019 100644
> --- a/src/intel/vulkan/genX_cmd_buffer.c
> +++ b/src/intel/vulkan/genX_cmd_buffer.c
> @@ -1006,6 +1006,7 @@ genX(BeginCommandBuffer)(
> VkResult result = VK_SUCCESS;
> if (cmd_buffer->usage_flags &
> VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT) {
> + assert(pBeginInfo->pInheritanceInfo);
> cmd_buffer->state.pass =
> anv_render_pass_from_handle(pBeginInfo->pInheritanceInfo->
> renderPass);
> cmd_buffer->state.subpass =
> --
> 2.14.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170926/54edaaaa/attachment.html>
More information about the mesa-dev
mailing list