freedreno: fdN_gmem_restore_format() is not gen specific
authorRob Clark <robdclark@gmail.com>
Mon, 12 Dec 2016 21:59:09 +0000 (16:59 -0500)
committerRob Clark <robdclark@gmail.com>
Sun, 18 Dec 2016 18:48:03 +0000 (13:48 -0500)
commitbea8602e5b576eb98d8e4657f2b1287fb9f148a1
treef8d972f4ad62087e637bd527ec3359c57b553b4d
parent6f93c75a47d80f3067e19fa3de4d54e5593a9d55
freedreno: fdN_gmem_restore_format() is not gen specific

Refactor out into a common helper, since this is the same across
generations when we need equiv z/s gmem restore format.

Next patch needs this in a5xx, rather than creating yet another
helper push this into core.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a3xx/fd3_emit.c
src/gallium/drivers/freedreno/a3xx/fd3_format.c
src/gallium/drivers/freedreno/a3xx/fd3_format.h
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_format.c
src/gallium/drivers/freedreno/a4xx/fd4_format.h
src/gallium/drivers/freedreno/freedreno_util.c
src/gallium/drivers/freedreno/freedreno_util.h