diff options
author | Eric Anholt <[email protected]> | 2018-07-11 14:53:57 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-07-12 11:49:22 -0700 |
commit | e8dc3c0c36e830f4b134151ac1e18d979e70f0c6 (patch) | |
tree | 867e74e7e52668698039c151769b52cf0d13f1d8 /src/gallium/auxiliary/util/u_blitter.h | |
parent | c17dac0534b445937a6e13fea3dabd59aac139ff (diff) |
u_blitter: Add an option to draw the triangles using an index buffer.
For V3D, the HW will interpolate slightly differently along the shared
edge of the trifan. The conformance tests manage to catch this in the
nearest_consistency_* group. To get interpolation to match, we need the
last vertex of the triangle to be shared.
I first tried implementing draw_rectangle to do triangles instead, but
that was quite a bit (147 lines) of code duplication from u_blitter, and
this seems much simpler and less likely to break as u_blitter changes.
Fixes dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_* on V3D.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.h b/src/gallium/auxiliary/util/u_blitter.h index 9e945983baa..9ea1dc9b6b2 100644 --- a/src/gallium/auxiliary/util/u_blitter.h +++ b/src/gallium/auxiliary/util/u_blitter.h @@ -100,6 +100,8 @@ struct blitter_context /* Whether the blitter is running. */ bool running; + bool use_index_buffer; + /* Private members, really. */ struct pipe_context *pipe; /**< pipe context */ |