diff options
author | Adam Jackson <[email protected]> | 2019-09-06 11:51:23 -0400 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2019-09-09 14:12:57 -0400 |
commit | 78e0fa6bb265afc11e7eab35ef6145b48b056ad0 (patch) | |
tree | e2a499e0b38a8cde0e74aa55f2a17a6fe842a17b /src/gallium/state_trackers | |
parent | c4990b7b19b5ea4ebec1fa4c4a94bfed33c34b9f (diff) |
mesa: Eliminate gl_config::have{Accum,Depth,Stencil}Buffer
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_screen.c | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c index 9317be29b3a..7898b088fc8 100644 --- a/src/gallium/state_trackers/dri/dri_screen.c +++ b/src/gallium/state_trackers/dri/dri_screen.c @@ -426,7 +426,7 @@ dri_fill_st_visual(struct st_visual *stvis, break; } - stvis->accum_format = (mode->haveAccumBuffer) ? + stvis->accum_format = (mode->accumRedBits > 0) ? PIPE_FORMAT_R16G16B16A16_SNORM : PIPE_FORMAT_NONE; stvis->buffer_mask |= ST_ATTACHMENT_FRONT_LEFT_MASK; @@ -441,7 +441,7 @@ dri_fill_st_visual(struct st_visual *stvis, stvis->buffer_mask |= ST_ATTACHMENT_BACK_RIGHT_MASK; } - if (mode->haveDepthBuffer || mode->haveStencilBuffer) + if (mode->depthBits > 0 || mode->stencilBits > 0) stvis->buffer_mask |= ST_ATTACHMENT_DEPTH_STENCIL_MASK; /* let the state tracker allocate the accum buffer */ } diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index a2ef87fa10f..3e01922c982 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.c +++ b/src/gallium/state_trackers/glx/xlib/xm_api.c @@ -866,10 +866,6 @@ XMesaVisual XMesaCreateVisual( Display *display, vis->accumBlueBits = accum_blue_size; vis->accumAlphaBits = accum_alpha_size; - vis->haveAccumBuffer = accum_red_size > 0; - vis->haveDepthBuffer = depth_size > 0; - vis->haveStencilBuffer = stencil_size > 0; - vis->numAuxBuffers = 0; vis->level = 0; vis->sampleBuffers = num_samples > 1; |