summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-11-07 18:12:08 +0100
committerNicolai Hähnle <[email protected]>2016-11-16 10:31:31 +0100
commit7cdf292dc3a83ff8d6cb26fc15a679d6d2cdc25b (patch)
tree8d36003b86e92707cc45409e7408b44dec599ef3 /src/mesa/state_tracker/st_context.h
parent5e10a3d6e5c26ecfb536707165f4baf3b27a7623 (diff)
st/mesa: fix SINT <-> UINT conversion during PBO upload / download
This fixes use cases like glReadPixels from an RGBA8I framebuffer into a PBO with type GL_INT by clamping values appropriately when they fall outside the range of the destination format. Fixes parts of GL45-CTS.gtf32.GL3Tests.packed_pixels.packed_pixels_pbo. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r--src/mesa/state_tracker/st_context.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h
index 83d77fdf8f4..b3478ea26eb 100644
--- a/src/mesa/state_tracker/st_context.h
+++ b/src/mesa/state_tracker/st_context.h
@@ -224,8 +224,8 @@ struct st_context
struct pipe_blend_state upload_blend;
void *vs;
void *gs;
- void *upload_fs;
- void *download_fs[PIPE_MAX_TEXTURE_TYPES];
+ void *upload_fs[3];
+ void *download_fs[3][PIPE_MAX_TEXTURE_TYPES];
bool upload_enabled;
bool download_enabled;
bool rgba_only;