panfrost: Delay payloads[].offset_start initialization
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Sep 2019 19:01:20 +0000 (21:01 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 13 Sep 2019 14:25:06 +0000 (16:25 +0200)
commit835439b84fc0830447bc4c8c672c0acd237b2801
tree9bcbc8ce4f49985a030d4edc8d95bd545eda8057
parent4166ca92e273dbd2180c74da68c0467cf3fd1860
panfrost: Delay payloads[].offset_start initialization

panfrost_draw_vbo() Might call the primeconvert/without_prim_restart
helpers which will enter the ->draw_vbo() again. Let's delay
payloads[].offset_start initialization so we don't initialize them
twice.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_context.c