summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorLauri Peltonen <lpeltonen@nvidia.com>2014-09-10 12:46:26 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:15 -0400
commit41f6befed027c21fb9cecb0a1c0a1ad257c44704 (patch)
treee284c1338237ce49e57eca871306a9616992ca8d /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent9c17175a357e3be0f3a881f30095c961c12c196f (diff)
gpu: nvgpu: Support ZBC color tracking
The compression state tracking user space API already accepts and returns the ZBC color used for the surface. Actually store the color in kernel so that the feature works. Bug 1536227 Bug 1524301 Change-Id: I264e1eeb90f0c4d40fe35fc2479b0ce83e19a7d7 Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com> Reviewed-on: http://git-master/r/497476 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Jussi Rasanen <jrasanen@nvidia.com> Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index f06c465a..89a2108b 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -192,6 +192,9 @@ struct gk20a_buffer_state {
192 /* A bitmask of valid sets of compbits (0 = uncompressed). */ 192 /* A bitmask of valid sets of compbits (0 = uncompressed). */
193 u32 valid_compbits; 193 u32 valid_compbits;
194 194
195 /* The ZBC color used on this buffer. */
196 u32 zbc_color;
197
195 /* This struct reflects the state of the buffer when this 198 /* This struct reflects the state of the buffer when this
196 * fence signals. */ 199 * fence signals. */
197 struct gk20a_fence *fence; 200 struct gk20a_fence *fence;