[Mesa-dev] [PATCH 1/2] radv: add an assertion in radv_BeginCommandBuffer()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Sep 26 08:55:22 UTC 2017
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 09/26/2017 10:14 AM, Gwan-gyeong Mun wrote:
> To check a valid usage requirement.
>
> CID: 1401616
>
> Signed-off-by: Mun Gwan-gyeong <elongbug at gmail.com>
> ---
> src/amd/vulkan/radv_cmd_buffer.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
> index 1e0e366820..4db9d7628c 100644
> --- a/src/amd/vulkan/radv_cmd_buffer.c
> +++ b/src/amd/vulkan/radv_cmd_buffer.c
> @@ -2124,6 +2124,7 @@ VkResult radv_BeginCommandBuffer(
> }
>
> if (pBeginInfo->flags & VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT) {
> + assert(pBeginInfo->pInheritanceInfo);
> cmd_buffer->state.framebuffer = radv_framebuffer_from_handle(pBeginInfo->pInheritanceInfo->framebuffer);
> cmd_buffer->state.pass = radv_render_pass_from_handle(pBeginInfo->pInheritanceInfo->renderPass);
>
>
More information about the mesa-dev
mailing list