History log of /external/mesa3d/src/gallium/drivers/virgl/virgl_encode.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5e6b2b05a5d6c09f103db59e7dcda10ccfeceae5 06-Dec-2016 Edward O'Callaghan <funfunctor@folklore1984.net> virgl: Fix a strict-aliasing violation in the encoder

As per the C spec, it is illegal to alias pointers to different
types. This results in undefined behaviour after optimization
passes, resulting in very subtle bugs that happen only on a
full moon..

Use a memcpy() as a well defined coercion between the double
to uint64_t interpretations of the memory.

V.2: Use static_assert() instead of assert().
V.3: Use C99 compat STATIC_ASSERT() over C11 static_assert().

Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Acked-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/virgl/virgl_encode.c
7cd256ce7e4bad680bb77d033cf5dd662abab2dd 12-Aug-2016 Marek Olšák <marek.olsak@amd.com> gallium: change pipe_sampler_view::first_element/last_element -> offset/size

This is required by OpenGL. Our hardware supports this.

Example: Bind RGBA32F with offset = 4 bytes.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97305

Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/drivers/virgl/virgl_encode.c
ac222626adfc7a03bf537deba66bad5e57b2c91d 01-Mar-2016 Dave Airlie <airlied@redhat.com> virgl: add support for passing render condition flags to host.

This just passes the extra blit info to fix the render condition
tests.

Cc: "11.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/virgl/virgl_encode.c
493e410d552e97572ca9a492d23648f6a236e4a4 29-Oct-2015 Emil Velikov <emil.l.velikov@gmail.com> virgl: unwrap the includes

Include what you want, rather than relying on a header foo.h N levels
down the include chain, to provide something that you need.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/virgl/virgl_encode.c
dafcb21405622eae3f8aa49000142f870549cc9b 28-Oct-2015 Emil Velikov <emil.l.velikov@gmail.com> virgl: use virgl_screen/surface upcast wrappers

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/virgl/virgl_encode.c
7af46b9c747cbd503a2b97f00f1c603f1b75aaff 28-Oct-2015 Emil Velikov <emil.l.velikov@gmail.com> virgl: introduce and use virgl_transfer/texture/resource inline wrappers

The only two remaining cases of (struct virgl_resource *) require a
closer look. Either the error checking is missing or the arguments
provided feel wrong.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/virgl/virgl_encode.c
6b123fa07ff9d73d6e67416c2372eab5c17282b6 28-Oct-2015 Emil Velikov <emil.l.velikov@gmail.com> virgl: add virgl_context/sampler_view/so_target() upcast wrappers

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/virgl/virgl_encode.c
a8987b88ff1db4ac00720a9b56c4bc3aeb666537 22-Jan-2015 Dave Airlie <airlied@redhat.com> virgl: add driver for virtio-gpu 3D (v2)

virgl is the 3D acceleration backend for the
virtio-gpu shipping with qemu.

The 3D acceleration is designed around gallium
and TGSI as the virtualisation layer. The backend
renderer translates the virgl interface into
OpenGL currently.

This is the initial import of the driver to mesa.

The kernel driver portions are lined up for drm-next.

Currently this driver supports up to GL3.3 and some
misc extensions if the host driver exposes it. It is
planned to iterate the virgl API to new GL levels
as mesa host drivers gain features.

v2: fix resource tracking across flushes to avoid
->bind hack in mapping.
consolidate mapping and waiting code for transfers.
use u_range for dirt tracking.
handle larger shaders in protocol.
include virtgpu_drm.h in mesa for now.
add translation layer for gallium tgsi to virgl tgsi.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/drivers/virgl/virgl_encode.c