diff options
author | Brian Paul <[email protected]> | 2018-08-22 11:11:22 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-08-29 11:29:07 -0600 |
commit | 8331d69a877bcc656ec19dd48ba5975138336f59 (patch) | |
tree | 84c92b19356ab0fa9e8bbcac56c8a5e2c7bda92a /src/gallium/drivers/svga/svga_context.h | |
parent | 46c7433da80aed0dcd2f7ee5d58dd9f7ebf37647 (diff) |
svga: fix PIPE_TEXTURE_RECT/BUFFER const buffer issue
The flag_rect and flag_buffer fields didn't sufficiently capture
the state changes needed for those resource types. For example,
if a texture binding was changed from a 500x500 rect texture to a
400x400 rect texture we didn't set SVGA_NEW_TEXTURE_CONSTS. But
we need to do that to emit the new texcoord scale factors to the
constant buffers. Rather than track the sizes of all bound
resources, just set the flag if the resource is a rect. Same
story with texture buffers.
Also, since rect/buffer textures are usable with VS/GS shaders,
add SVGA_NEW_TEXTURE_CONSTS to the flags we check for emitting
VS/GS constants.
This seems to help with XFCE / xfwm4 desktop scaling.
VMware issue 2156696.
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h index bc881c943d6..484fd55d5ed 100644 --- a/src/gallium/drivers/svga/svga_context.h +++ b/src/gallium/drivers/svga/svga_context.h @@ -300,8 +300,6 @@ struct svga_state struct { unsigned flag_1d; unsigned flag_srgb; - unsigned flag_rect; /* sampler views with rectangular texture target */ - unsigned flag_buf; /* sampler views with texture buffer target */ } tex_flags; unsigned sample_mask; |