summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_texture.h
diff options
context:
space:
mode:
authorLepton Wu <[email protected]>2019-08-30 17:30:53 +0000
committerMarek Olšák <[email protected]>2019-08-30 17:30:53 +0000
commitbd98470a4692860004c1e9282808a638758c6f04 (patch)
tree40023250258f80d6880e0d09f1ac88b8e9cf9507 /src/mesa/state_tracker/st_texture.h
parent6926f56d5bd02de66d1e928d79ffb8082eeb0211 (diff)
st/mesa: Allow zero as [level|layer]_override
This fix two dEQP tests for virgl: dEQP-EGL.functional.image.create.gles2_cubemap_positive_x_rgba_texture dEQP-EGL.functional.image.render_multiple_contexts.gles2_cubemap_positive_x_rgba8_texture Signed-off-by: Lepton Wu <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
-rw-r--r--src/mesa/state_tracker/st_texture.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h
index c5fc30cec5d..1fc36631c2e 100644
--- a/src/mesa/state_tracker/st_texture.h
+++ b/src/mesa/state_tracker/st_texture.h
@@ -164,15 +164,15 @@ struct st_texture_object
*/
enum pipe_format surface_format;
- /* When non-zero, samplers should use this level instead of the level
+ /* When non-negative, samplers should use this level instead of the level
* range specified by the GL state.
*
* This is used for EGL images, which may correspond to a single level out
* of an imported pipe_resources with multiple mip levels.
*/
- uint level_override;
+ int level_override;
- /* When non-zero, samplers should use this layer instead of the one
+ /* When non-negative, samplers should use this layer instead of the one
* specified by the GL state.
*
* This is used for EGL images and VDPAU interop, where imported
@@ -180,7 +180,7 @@ struct st_texture_object
* with different fields in the case of VDPAU) even though the GL state
* describes one non-array texture per field.
*/
- uint layer_override;
+ int layer_override;
/**
* Set when the texture images of this texture object might not all be in