gallium: add PIPE_RESOURCE_FLAG_TEXTURING_MORE_LIKELY
authorMarek Olšák <marek.olsak@amd.com>
Wed, 12 Oct 2016 01:06:08 +0000 (03:06 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 13 Oct 2016 17:00:51 +0000 (19:00 +0200)
commita077185ea9d685967844b68aa09da6bd8aa430da
tree98462f859ae3a3c432ee2126c2d512ab545df24d
parent761388a0eb586b1dcaec063ee561056ed132dc1a
gallium: add PIPE_RESOURCE_FLAG_TEXTURING_MORE_LIKELY

For performance tuning in drivers. It filters out window system
framebuffers and OpenGL renderbuffers.

radeonsi will use this to guess whether a depth buffer will be read
by a shader. There is no guarantee about what will actually happen.

This is a departure from PIPE_BIND flags which are defined to be strict
but they are useless in practice.

Acked-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/include/pipe/p_defines.h
src/mesa/state_tracker/st_texture.c