From: Eric Anholt Date: Mon, 22 Jun 2015 18:45:27 +0000 (-0700) Subject: vc4: Clarify size calculation for Z/S writes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76851f49a5beac01b4eee7892ca95f44b5e18e29;p=mesa.git vc4: Clarify size calculation for Z/S writes. It's the same value for loads and stores, because they're basically the same packet. --- diff --git a/src/gallium/drivers/vc4/kernel/vc4_render_cl.c b/src/gallium/drivers/vc4/kernel/vc4_render_cl.c index deb2ccfa0d4..f55ffe5a8db 100644 --- a/src/gallium/drivers/vc4/kernel/vc4_render_cl.c +++ b/src/gallium/drivers/vc4/kernel/vc4_render_cl.c @@ -208,7 +208,7 @@ static int vc4_create_rcl_bo(struct drm_device *dev, struct vc4_exec_info *exec, } if (setup->zs_write) - loop_body_size += VC4_PACKET_LOAD_TILE_BUFFER_GENERAL_SIZE; + loop_body_size += VC4_PACKET_STORE_TILE_BUFFER_GENERAL_SIZE; if (setup->color_ms_write) { if (setup->zs_write) loop_body_size += VC4_PACKET_TILE_COORDINATES_SIZE;