diff options
author | Imre Deak <imre.deak@intel.com> | 2019-12-29 19:20:07 +0200 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2019-12-31 14:44:02 +0200 |
commit | 86d7c631bcc7b0f4e4683cb753ad2eafc170a7da (patch) | |
tree | bb4b34c3a45cea0d1d9c216e06989291d99d91f1 /lib/intel_batchbuffer.h | |
parent | ea6858b6283740a64c6c8bb90d7bc8d457368d6e (diff) |
lib/igt_buf: Extend igt_buf to include two CCS surfaces
YUV FBs have two CCS surfaces so extend the igt_buf struct accordingly
to support blitting such FBs.
The patch is produced with the coccinelle patch below, along with some
w/s fixup.
No functional change.
@@
@@
struct igt_buf {
...
struct {
uint32_t offset;
uint32_t stride;
- } aux;
+ } ccs[2];
...
};
@@
struct igt_buf *b;
@@
(
- b->aux.offset
+ b->ccs[0].offset
|
- b->aux.stride
+ b->ccs[0].stride
)
@@
struct igt_buf b;
@@
(
- b.aux.offset
+ b.ccs[0].offset
|
- b.aux.stride
+ b.ccs[0].stride
)
Cc: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.h')
-rw-r--r-- | lib/intel_batchbuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h index c3028343..63d32188 100644 --- a/lib/intel_batchbuffer.h +++ b/lib/intel_batchbuffer.h @@ -241,7 +241,7 @@ struct igt_buf { struct { uint32_t offset; uint32_t stride; - } aux; + } ccs[2]; struct { uint32_t offset; } cc; |