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_aux_pgtable.c | |
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_aux_pgtable.c')
-rw-r--r-- | lib/intel_aux_pgtable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/intel_aux_pgtable.c b/lib/intel_aux_pgtable.c index f8ce6754..dab83a9a 100644 --- a/lib/intel_aux_pgtable.c +++ b/lib/intel_aux_pgtable.c @@ -256,7 +256,7 @@ pgt_populate_entries_for_buf(struct pgtable *pgt, { uint64_t surface_addr = buf->bo->offset64; uint64_t surface_end = surface_addr + buf->size; - uint64_t aux_addr = buf->bo->offset64 + buf->aux.offset; + uint64_t aux_addr = buf->bo->offset64 + buf->ccs[0].offset; uint64_t l1_flags = pgt_get_l1_flags(buf); uint64_t lx_flags = pgt_get_lx_flags(); |