diff options
author | Nicolai Hähnle <[email protected]> | 2016-11-07 15:55:52 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-11-16 10:31:21 +0100 |
commit | 3817a7a1d7434ae5ae069599013cea81cf809aa5 (patch) | |
tree | 3758d474e6c4d8f12e306846abeec92623668c05 /src/gallium/tests | |
parent | ab5fd10eaa7e9a7cca20f6aa6b01240e8fd62c49 (diff) |
util/blitter: add clamping during SINT <-> UINT blits
Even though glBlitFramebuffer cannot be used for SINT <-> UINT blits, we
still need to handle this type of blit here because it can happen as part
of texture uploads / downloads, e.g. uploading a GL_RGBA8I texture from
GL_UNSIGNED_INT data.
Fixes parts of GL45-CTS.gtf32.GL3Tests.packed_pixels.packed_pixels.
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/tests')
-rw-r--r-- | src/gallium/tests/trivial/quad-tex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/tests/trivial/quad-tex.c b/src/gallium/tests/trivial/quad-tex.c index ddee2942af9..c72c5fe2391 100644 --- a/src/gallium/tests/trivial/quad-tex.c +++ b/src/gallium/tests/trivial/quad-tex.c @@ -272,6 +272,7 @@ static void init_prog(struct program *p) /* fragment shader */ p->fs = util_make_fragment_tex_shader(p->pipe, TGSI_TEXTURE_2D, TGSI_INTERPOLATE_LINEAR, + TGSI_RETURN_TYPE_FLOAT, TGSI_RETURN_TYPE_FLOAT); } |