iris: Make mocs an inline helper in iris_resource.h
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Feb 2020 09:02:30 +0000 (01:02 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 22 Feb 2020 00:44:38 +0000 (16:44 -0800)
commit1cdf5abdfaeba5a89574d7cc374e5667be2e2f93
treede7021e969c2426632dd6feccd34c6b71d6a7131
parentf8ab00776cc0b2a009403a8611c00341d879f9ab
iris: Make mocs an inline helper in iris_resource.h

Now that it uses ISL rather than genxml code, there's no need for it to
live as a vtable function inside the state module.  We can just make it
a static inline helper in iris_resource.h so it's available throughout
the codebase.

Fixes: a4da6008b6a ("iris: Use mocs from isl_dev.")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3720>
src/gallium/drivers/iris/iris_blit.c
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_draw.c
src/gallium/drivers/iris/iris_program.c
src/gallium/drivers/iris/iris_resource.h
src/gallium/drivers/iris/iris_state.c