From 41f6befed027c21fb9cecb0a1c0a1ad257c44704 Mon Sep 17 00:00:00 2001 From: Lauri Peltonen Date: Wed, 10 Sep 2014 19:46:26 +0300 Subject: 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 Reviewed-on: http://git-master/r/497476 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Jussi Rasanen Reviewed-by: Arto Merilainen Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h') 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 { /* A bitmask of valid sets of compbits (0 = uncompressed). */ u32 valid_compbits; + /* The ZBC color used on this buffer. */ + u32 zbc_color; + /* This struct reflects the state of the buffer when this * fence signals. */ struct gk20a_fence *fence; -- cgit v1.2.2