Reapply "WIP: use compute shader instead of graphics shader for better performance (especially on amd)"

This reverts commit f85a7ab205.
This commit is contained in:
dec05eba
2025-03-29 15:38:05 +01:00
parent f85a7ab205
commit b8a521a785
18 changed files with 331 additions and 746 deletions

View File

@@ -83,8 +83,8 @@ static void gsr_video_encoder_software_copy_textures_to_frame(gsr_video_encoder
self->params.egl->glBindTexture(GL_TEXTURE_2D, 0);
// cap_kms->kms.base.egl->eglSwapBuffers(cap_kms->kms.base.egl->egl_display, cap_kms->kms.base.egl->egl_surface);
self->params.egl->glFlush();
self->params.egl->glFinish();
//self->params.egl->glFlush();
//self->params.egl->glFinish();
}
static void gsr_video_encoder_software_get_textures(gsr_video_encoder *encoder, unsigned int *textures, int *num_textures, gsr_destination_color *destination_color) {