diff options
author | Ilia Mirkin <[email protected]> | 2015-04-04 02:53:52 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-04-05 16:36:35 -0400 |
commit | b060b56772cdb349478757382de036a20a2402ba (patch) | |
tree | 4198b12da56eca39524a932dfcbea9949612a08f /src/gallium/drivers/freedreno/a3xx/fd3_draw.c | |
parent | 1de72dfc8a2014069edd1b3d3d46dad478d0680a (diff) |
freedreno/a3xx: pass sprite coord mode through to program emit
Use the correct sprite replacement depending on the flip of the coord
mode, using either T or 1-T depending on whether we have an upper-left or
lower-left coordinate origin. This fixes all the point sprite piglits.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx/fd3_draw.c')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_draw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_draw.c b/src/gallium/drivers/freedreno/a3xx/fd3_draw.c index 044355c2b68..b522cf86695 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_draw.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_draw.c @@ -153,6 +153,7 @@ fd3_draw_vbo(struct fd_context *ctx, const struct pipe_draw_info *info) }, .rasterflat = ctx->rasterizer && ctx->rasterizer->flatshade, .sprite_coord_enable = ctx->rasterizer ? ctx->rasterizer->sprite_coord_enable : 0, + .sprite_coord_mode = ctx->rasterizer ? ctx->rasterizer->sprite_coord_mode : false, }; unsigned dirty; |