OSDN Git Service

vc4: Clarify size calculation for Z/S writes.
authorEric Anholt <eric@anholt.net>
Mon, 22 Jun 2015 18:45:27 +0000 (11:45 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 24 Jun 2015 01:40:50 +0000 (18:40 -0700)
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

index deb2ccf..f55ffe5 100644 (file)
@@ -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;