Reviewed-by: Jason Ekstrand <ja...@jlekstrand.net>

On Tue, Sep 26, 2017 at 1:14 AM, Gwan-gyeong Mun <elong...@gmail.com> wrote:

> To check a valid usage requirement.
>
> Signed-off-by: Mun Gwan-gyeong <elong...@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
>
>
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to