mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 05:20:37 +02:00
st/dri: remove an unused-but-set variable
This commit is contained in:
parent
a3cde50eff
commit
115651241b
1 changed files with 0 additions and 7 deletions
|
|
@ -266,7 +266,6 @@ dri2_allocate_buffer(__DRIscreen *sPriv,
|
|||
struct dri_screen *screen = dri_screen(sPriv);
|
||||
struct dri2_buffer *buffer;
|
||||
struct pipe_resource templ;
|
||||
enum st_attachment_type statt;
|
||||
enum pipe_format pf;
|
||||
unsigned bind = 0;
|
||||
struct winsys_handle whandle;
|
||||
|
|
@ -274,22 +273,16 @@ dri2_allocate_buffer(__DRIscreen *sPriv,
|
|||
switch (attachment) {
|
||||
case __DRI_BUFFER_FRONT_LEFT:
|
||||
case __DRI_BUFFER_FAKE_FRONT_LEFT:
|
||||
statt = ST_ATTACHMENT_FRONT_LEFT;
|
||||
bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW;
|
||||
break;
|
||||
case __DRI_BUFFER_BACK_LEFT:
|
||||
statt = ST_ATTACHMENT_BACK_LEFT;
|
||||
bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW;
|
||||
break;
|
||||
case __DRI_BUFFER_DEPTH:
|
||||
case __DRI_BUFFER_DEPTH_STENCIL:
|
||||
case __DRI_BUFFER_STENCIL:
|
||||
statt = ST_ATTACHMENT_DEPTH_STENCIL;
|
||||
bind = PIPE_BIND_DEPTH_STENCIL; /* XXX sampler? */
|
||||
break;
|
||||
default:
|
||||
statt = ST_ATTACHMENT_INVALID;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (format) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue