Skip to content

shader_info: convert textures_used to a bitset.

Dave Airlie requested to merge airlied/mesa:textures_used_bitset into master

For CL in the future it has a minimum 128 samplers views required. These fields store bitmasks of what is essentially sampler views. So it needs to be expanded to 128 in the future.

For now just convert to the bitset API with a single bitset in it. A few patches have bitset[0] references in them and in the future if those drivers want CL image support then that will have to be addressed on a case by case basis.

TGSI also has a file_mask[] field for all semantics which is 32-bit which will need to be worked around if a driver want to acesss all 128 views.

Edited by Dave Airlie

Merge request reports