• Gert Wollny's avatar
    virgl: Allow RGB32* textures only as buffer objects · 0bde9739
    Gert Wollny authored
    When requesting a texture of the internal format GL_RGB32F Gallium will
    try to allocate a renderable texture and returns RGBA32F or RGBX32F, but
    when one requests GL_RGB32I or GL_RGB32UI the according 3-component
    texture will be returned. This leads to problems later, when one wants
    to use glCopyImageSubData to copy data between these textures that should
    be compatible, but given the way virgl and Gallium  handle this the latter
    fails with an assertion, because the per-texel bit size is different.
    
    By allowing the GL_RGB32* only for texture buffers these problems are avoided
    without losing the ARB_tbo_rgb32 extension (thanks Ilia Mirkin).
    
    v2: Correct spelling (Gurchetan Singh)
    Signed-off-by: Gert Wollny's avatarGert Wollny <gert.wollny@collabora.com>
    Reviewed-by: Gurchetan Singh's avatarGurchetan Singh <gurchetansingh@chromium.org>
    0bde9739
Name
Last commit
Last update
bin Loading commit data...
build-support Loading commit data...
docs Loading commit data...
doxygen Loading commit data...
include Loading commit data...
m4 Loading commit data...
scons Loading commit data...
scripts Loading commit data...
src Loading commit data...
.dir-locals.el Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Android.common.mk Loading commit data...
Android.mk Loading commit data...
CleanSpec.mk Loading commit data...
Makefile.am Loading commit data...
README.rst Loading commit data...
REVIEWERS Loading commit data...
SConstruct Loading commit data...
VERSION Loading commit data...
appveyor.yml Loading commit data...
autogen.sh Loading commit data...
common.py Loading commit data...
configure.ac Loading commit data...
install-gallium-links.mk Loading commit data...
install-lib-links.mk Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...