nvc0: replace use of explicit default_tsc with entry 0
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 2 Dec 2018 17:27:23 +0000 (12:27 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 15 Dec 2018 01:01:31 +0000 (20:01 -0500)
commit4aeaf89aa776fa4f6f7c60eafa8806e660d2a13d
tree88835a89c85b951f4d6656f8ac840e4cd17dfef2
parent5f9085638a75b0fdfbb56aaa1c0da3414d8c13ce
nvc0: replace use of explicit default_tsc with entry 0

This was used for implementing FBFETCH. However that uses TXF, which
doesn't do much with a TSC. The only important bit is that sRGB-decoding
works as expected, which we can achieve since all samplers we ever
generate enable sRGB-decoding. Always point to entry 0 in the TSC table,
and ensure that even before it ever gets initialized, the sRGB-decoding
enable bit is set.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_context.c
src/gallium/drivers/nouveau/nvc0/nvc0_context.h
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c
src/gallium/drivers/nouveau/nvc0/nvc0_tex.c