• Ilia Mirkin's avatar
    nv50: always keep TSC slot 0 bound · de49e065
    Ilia Mirkin authored
    All TXF operations implicitly use sampler 0, and fail if it's not bound
    to anything. This does not happen in LINKED_TSC mode, but we don't
    currently use this.
    
    We ensure that TSC entry at id 0 has the SRGB conversion bit enabled
    (and all samplers we normally generate will too). Then when the TSC at
    *slot* 0 (not to be confused with entry 0 in the global TSC table) is
    unbound, we bind it to entry 0. This way, TXF operations are not
    dependent on there being a regular sampler bound there.
    
    Fixes arb_texture_buffer_object-subdata-sync among others. (TBO's are
    particularly susceptible to this as they don't bind a sampler.)
    Signed-off-by: Ilia Mirkin's avatarIlia Mirkin <imirkin@alum.mit.edu>
    de49e065
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...