freedreno: mark SSBOs written at draw time
authorRob Clark <robdclark@gmail.com>
Thu, 16 Nov 2017 13:32:32 +0000 (08:32 -0500)
committerRob Clark <robdclark@gmail.com>
Thu, 16 Nov 2017 13:44:19 +0000 (08:44 -0500)
Comment was right, implementation was wrong ;-)

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_draw.c

index f2ccfc585488fafe1ae247b3ee90b49ed7d1d779..cd3647b9e76b40145ff09accd719e8f700630674 100644 (file)
@@ -163,7 +163,7 @@ fd_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
         * read vs written, so just assume the worst
         */
        foreach_bit(i, ctx->shaderbuf[PIPE_SHADER_FRAGMENT].enabled_mask)
-               resource_read(batch, ctx->shaderbuf[PIPE_SHADER_FRAGMENT].sb[i].buffer);
+               resource_written(batch, ctx->shaderbuf[PIPE_SHADER_FRAGMENT].sb[i].buffer);
 
        foreach_bit(i, ctx->constbuf[PIPE_SHADER_VERTEX].enabled_mask)
                resource_read(batch, ctx->constbuf[PIPE_SHADER_VERTEX].cb[i].buffer);