diff --git a/.pick_status.json b/.pick_status.json index 5ce95d492b3..ec16b277e8a 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -427,7 +427,7 @@ "description": "drisw: remove dead code", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "d760a9151b73d1998fceff38fb1c642e4d77bf67" }, diff --git a/src/gallium/frontends/dri/drisw.c b/src/gallium/frontends/dri/drisw.c index 5603b612318..fa6769d3b57 100644 --- a/src/gallium/frontends/dri/drisw.c +++ b/src/gallium/frontends/dri/drisw.c @@ -397,13 +397,7 @@ drisw_allocate_textures(struct dri_context *stctx, templ.nr_samples = 0; templ.nr_storage_samples = 0; - if (bind & PIPE_BIND_DISPLAY_TARGET && - screen->base.screen->resource_create_drawable) { - drawable->textures[statts[i]] = - screen->base.screen->resource_create_drawable(screen->base.screen, - &templ, - drawable->dPriv); - } else if (statts[i] == ST_ATTACHMENT_FRONT_LEFT && + if (statts[i] == ST_ATTACHMENT_FRONT_LEFT && screen->base.screen->resource_create_front && loader->base.version >= 3) { drawable->textures[statts[i]] =