Mesa (master): vc4: Clarify size calculation for Z/S writes.

Eric Anholt anholt at kemper.freedesktop.org
Wed Jun 24 04:12:24 UTC 2015


Module: Mesa
Branch: master
Commit: 76851f49a5beac01b4eee7892ca95f44b5e18e29
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=76851f49a5beac01b4eee7892ca95f44b5e18e29

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Jun 22 11:45:27 2015 -0700

vc4: Clarify size calculation for Z/S writes.

It's the same value for loads and stores, because they're basically the
same packet.

---

 src/gallium/drivers/vc4/kernel/vc4_render_cl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/kernel/vc4_render_cl.c b/src/gallium/drivers/vc4/kernel/vc4_render_cl.c
index deb2ccf..f55ffe5 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;




More information about the mesa-commit mailing list