Marc-André Lureau
6cf9b5ece6
egl: add virgl_renderer_get_fd_for_texture2()
...
virgl_renderer_resource_get_info() doesn't return the underlying image
stride. eglExportDMABUFImageMESA() does. This fixes imports failing
due to a stride mismatch under certain resolutions. (note that qemu
uses its own export methods, perhaps because Gerd noticed the problem
with virgl egl export functions)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
6 years ago
Gert Wollny
5e5a82233a
vrend_blitter.c, vrend_egl_context.c: Fix warnings
...
vrend_blitter.c: In Funktion »vrend_renderer_blit_gl«:
vrend_blitter.c:602:51: Warnung: unused parameter »ctx« [-Wunused-
parameter]
void vrend_renderer_blit_gl(struct vrend_context *ctx,
^~~
virgl_egl_context.c: In Funktion »virgl_egl_get_current_context«:
virgl_egl_context.c:278:75: Warnung: unused parameter »ve« [-Wunused-
parameter]
virgl_renderer_gl_context virgl_egl_get_current_context(struct
virgl_egl *ve)
v2: Use mesa style UNUSED annotation for unused parameters
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
6 years ago
Dave Airlie
74fd068175
virgl/egl: add support for native platform interface.
...
This fixes vtest on glvnd.
Signed-off-by: Dave Airlie <airlied@redhat.com>
7 years ago
Marc-André Lureau
a62554cca9
egl: check eglExportDMABUFImageMESA return value
...
Found thanks to llvm scan-build.
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
9 years ago
Marc-André Lureau
1c820951dc
build-sys: use the appropriate autoconf macros for cflags
...
Don't bust CFLAGS passed on make command line please.
[airlied: wrap config.h include]
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years ago
Marc-André Lureau
814f638d42
egl: update mesa_dma_buf_img_export usage
10 years ago
Dave Airlie
7e85c2f114
renderer: CLEANUP: whitespace and reindent
...
this uses the mesa coding style, pray I never have to do
this again.
strip all trailing whitespace as much as possible
10 years ago
Dave Airlie
bdbf734fa2
renderer/egl: decrease egl debug output
...
this just removes this from the common output
10 years ago
Dave Airlie
5783d84b30
egl: overhaul the fourcc retrieval function
...
We really need a new mesa interface that works properly for all this.
10 years ago
Dave Airlie
d30144b6aa
renderer: consolidate on errno return values
10 years ago
Dave Airlie
9521a43f90
virgl/egl: call closedir to avoid leaking memory
10 years ago
Dave Airlie
553ae3fbd6
virgl/egl: check fd is valid.
10 years ago
Dave Airlie
03e3116a75
import latest renderer code
10 years ago
Dave Airlie
a3a2c64cd6
initial import of standalone renderer
11 years ago