mesa: associate uniform storage to bindless samplers/images
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 11 May 2017 16:23:34 +0000 (18:23 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Jun 2017 08:04:36 +0000 (10:04 +0200)
commit804e6f2b76a383f99666177343bce5000788348a
tree48b047ce9aa2fe6c4d0e91b9fba0cbf6dd62c673
parent878a6e6eed9490109f0196e6af77cfba374a5fcc
mesa: associate uniform storage to bindless samplers/images

When a bindless sampler/image is bound to a texture/image unit,
we have to overwrite the constant value by the resident handle
directly in the constant buffer before the next draw.

One solution is to keep track of a pointer to the data.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/program/ir_to_mesa.cpp