Lines Matching refs:cons_usage
152 bool CpuCanAccess(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage) { in CpuCanAccess() argument
153 return CpuCanRead(prod_usage, cons_usage) || CpuCanWrite(prod_usage); in CpuCanAccess()
156 bool CpuCanRead(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage) { in CpuCanRead() argument
161 if (cons_usage & GRALLOC1_CONSUMER_USAGE_CPU_READ) { in CpuCanRead()
184 gralloc1_consumer_usage_t cons_usage = info.cons_usage; in GetSize() local
186 if (IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetSize()
355 gralloc1_consumer_usage_t cons_usage = hnd->GetConsumerUsage(); in GetYUVPlaneInfo() local
378 prod_usage, cons_usage); in GetYUVPlaneInfo()
502 gralloc1_consumer_usage_t cons_usage) { in IsUBwcEnabled() argument
514 if ((cons_usage & GRALLOC1_CONSUMER_USAGE_GPU_TEXTURE) || in IsUBwcEnabled()
522 if (enable && !(CpuCanAccess(prod_usage, cons_usage))) { in IsUBwcEnabled()
677 gralloc1_consumer_usage_t cons_usage = info.cons_usage; in GetAlignedWidthAndHeight() local
680 bool ubwc_enabled = IsUBwcEnabled(format, prod_usage, cons_usage); in GetAlignedWidthAndHeight()