f6107a0c5d
If there is only one monitor connected and it's rotated then the drm buf will also be rotated. This only the case with AMD and only when using one monitor! To fix this, we perform color conversion with an opengl shader which allows us to also rotate the texture. VAAPI supports rotation but it's not implemented by AMD at least. Performance seems to be the same as when using VAAPI, even when GPU usage is 100%.
13 lines
135 B
C
13 lines
135 B
C
#ifndef VEC2_H
|
|
#define VEC2_H
|
|
|
|
typedef struct {
|
|
int x, y;
|
|
} vec2i;
|
|
|
|
typedef struct {
|
|
float x, y;
|
|
} vec2f;
|
|
|
|
#endif /* VEC2_H */
|