diff options
author | Rob Clark <[email protected]> | 2017-11-16 08:32:32 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-11-16 08:44:19 -0500 |
commit | 92e75bf0ec77d632835f6bb4201b7e3f882a11bb (patch) | |
tree | a667461064572d9b90902a1784ded6c398bb6e86 /src/gallium/drivers/freedreno | |
parent | 2878af74dd3629aaa292de75f7d12f153ab1ad86 (diff) |
freedreno: mark SSBOs written at draw time
Comment was right, implementation was wrong ;-)
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_draw.c b/src/gallium/drivers/freedreno/freedreno_draw.c index f2ccfc58548..cd3647b9e76 100644 --- a/src/gallium/drivers/freedreno/freedreno_draw.c +++ b/src/gallium/drivers/freedreno/freedreno_draw.c @@ -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); |