panfrost: Let compile_blend_shader() allocate the blend shader object
This way we avoid an extra copy in panfrost_get_blend_shader(). Note that the allocation is attached to the blend state object which simplifies the delete_blend_state() path. Signed-off-by:Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <mesa/mesa!7066>
Showing
- src/gallium/drivers/panfrost/pan_blend_cso.c 1 addition, 17 deletionssrc/gallium/drivers/panfrost/pan_blend_cso.c
- src/gallium/drivers/panfrost/pan_blend_shaders.c 14 additions, 13 deletionssrc/gallium/drivers/panfrost/pan_blend_shaders.c
- src/gallium/drivers/panfrost/pan_blend_shaders.h 5 additions, 6 deletionssrc/gallium/drivers/panfrost/pan_blend_shaders.h
Loading
Please register or sign in to comment