freedreno: fix a typo in launch_grid
authorHyunjun Ko <zzoon@igalia.com>
Thu, 20 Sep 2018 02:39:49 +0000 (11:39 +0900)
committerRob Clark <robdclark@gmail.com>
Thu, 27 Sep 2018 20:06:19 +0000 (16:06 -0400)
src/gallium/drivers/freedreno/freedreno_draw.c

index 5a95880944b1c60e582650a6a4b517fd27efed82..e130895aac8d2ee4569b87728b0f7171c7448818 100644 (file)
@@ -469,7 +469,7 @@ fd_launch_grid(struct pipe_context *pctx, const struct pipe_grid_info *info)
         * read vs written, so just assume the worst
         */
        foreach_bit(i, ctx->shaderbuf[PIPE_SHADER_COMPUTE].enabled_mask)
-               resource_read(batch, ctx->shaderbuf[PIPE_SHADER_COMPUTE].sb[i].buffer);
+               resource_written(batch, ctx->shaderbuf[PIPE_SHADER_COMPUTE].sb[i].buffer);
 
        foreach_bit(i, ctx->shaderimg[PIPE_SHADER_COMPUTE].enabled_mask) {
                struct pipe_image_view *img =