render: drop legacy render pass

All built-in renderers now implement the new API.
This commit is contained in:
Simon Ser 2023-06-12 13:43:18 +02:00
parent 5dd614b9ad
commit 40633ae7fd
3 changed files with 0 additions and 162 deletions

View file

@ -27,7 +27,6 @@
#endif // WLR_HAS_VULKAN_RENDERER
#include "backend/backend.h"
#include "render/pass.h"
#include "render/pixel_format.h"
#include "render/wlr_renderer.h"
#include "util/env.h"
@ -450,10 +449,6 @@ int wlr_renderer_get_drm_fd(struct wlr_renderer *r) {
struct wlr_render_pass *wlr_renderer_begin_buffer_pass(struct wlr_renderer *renderer,
struct wlr_buffer *buffer, const struct wlr_buffer_pass_options *options) {
if (!renderer->impl->begin_buffer_pass) {
return begin_legacy_buffer_render_pass(renderer, buffer);
}
struct wlr_buffer_pass_options default_options = {0};
if (!options) {
options = &default_options;