diff options
author | Chia-I Wu <[email protected]> | 2013-06-13 18:22:40 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-13 23:47:18 +0800 |
commit | c7e9b15010c32302d3cceac06ff8c34619deab7c (patch) | |
tree | 39f139711c3d679e5cd1ce29cd07b46756899353 /src/gallium/drivers/ilo/ilo_3d.c | |
parent | 5f15050dc9819beb4513b9923af3b5d1600b184f (diff) |
ilo: mapping a resource may make some states dirty
When a resource is busy and is mapped with
PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE, the underlying bo is replaced. We need
to mark states affected by the resource dirty.
With this change, we no longer have to emit vertex buffers and index buffer
unconditionally.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_3d.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_3d.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gallium/drivers/ilo/ilo_3d.c b/src/gallium/drivers/ilo/ilo_3d.c index aba92a0375a..b2cbcf04e0c 100644 --- a/src/gallium/drivers/ilo/ilo_3d.c +++ b/src/gallium/drivers/ilo/ilo_3d.c @@ -661,13 +661,6 @@ ilo_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info) ILO_3D_PIPELINE_INVALIDATE_KERNEL_BO); } - /* - * The VBs and/or IB may have different BOs due to being mapped with - * PIPE_TRANSFER_DISCARD_x. We should track that instead of setting the - * dirty flags for the performance reason. - */ - ilo->dirty |= ILO_DIRTY_VERTEX_BUFFERS | ILO_DIRTY_INDEX_BUFFER; - /* If draw_vbo ever fails, return immediately. */ if (!draw_vbo(hw3d, ilo, info, &prim_generated, &prim_emitted)) return; |