diff options
author | Bruce Cherniak <[email protected]> | 2017-04-07 11:27:39 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-04-07 16:50:58 -0500 |
commit | 07b5b5cfd476fe968b9de3782653b56fec5c5a88 (patch) | |
tree | e03f3dc74463c1d0d002f5e294ca1cc073cd2a0a /src/gallium/state_trackers/glx/xlib/xm_st.c | |
parent | 7bd5057fd153d5aa55c74624c2bda9651377711d (diff) |
st/glx: Add awareness for multisample pixel formats to st/glx-xlib.
In preparation for enabling MSAA in OpenSWR, the state trackers need to
be aware of multisample pixel formats for software renderers. This patch
allows glx-xlib to query the renderer for support of pixel
formats with multisample, and create multisample resources.
This change is benign to softpipe and llvmpipe, as is_format_supported
returns FALSE for any sample_count > 1. OpenSWR does the same at the
moment, but that will change soon.
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/glx/xlib/xm_st.c')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_st.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/xm_st.c b/src/gallium/state_trackers/glx/xlib/xm_st.c index f598430dc26..9e30efad60d 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_st.c +++ b/src/gallium/state_trackers/glx/xlib/xm_st.c @@ -134,6 +134,7 @@ xmesa_st_framebuffer_validate_textures(struct st_framebuffer_iface *stfbi, templ.depth0 = 1; templ.array_size = 1; templ.last_level = 0; + templ.nr_samples = xstfb->stvis.samples; for (i = 0; i < ST_ATTACHMENT_COUNT; i++) { enum pipe_format format; |