diff options
author | Marek Olšák <[email protected]> | 2017-08-17 03:32:23 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-09-11 02:10:24 +0200 |
commit | 22ed1ba01a4d1a331775cf8d8faf256d69276e83 (patch) | |
tree | a98d18ff65baa75e317bdcc9985d102e1e661df0 /src/gallium/drivers/radeon | |
parent | 43247c440e65e41ea8a7d48249aef66f508601e3 (diff) |
gallium/u_blitter: use draw_rectangle for all blits except cubemaps
Add ZW coordinates to the draw_rectangle callback and use it.
Reviewed-by: Nicolai Hähnle <[email protected]>
Tested-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index f5f15246176..72553292f59 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -266,7 +266,11 @@ void r600_draw_rectangle(struct blitter_context *blitter, memcpy(vb+12, attrib->color, sizeof(float)*4); memcpy(vb+20, attrib->color, sizeof(float)*4); break; - case UTIL_BLITTER_ATTRIB_TEXCOORD: + case UTIL_BLITTER_ATTRIB_TEXCOORD_XYZW: + vb[6] = vb[14] = vb[22] = attrib->texcoord.z; + vb[7] = vb[15] = vb[23] = attrib->texcoord.w; + /* fall through */ + case UTIL_BLITTER_ATTRIB_TEXCOORD_XY: vb[4] = attrib->texcoord.x1; vb[5] = attrib->texcoord.y1; vb[12] = attrib->texcoord.x1; |