mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 00:10:58 +08:00
Always program surfaceArray for nv12 images
Change-Id: I14554bbf1bf4a73c392cc5d6bf9bccc32589dd7f Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
84d25a9324
commit
fb47117895
@@ -38,7 +38,9 @@ void ImageHw<GfxFamily>::setImageArg(void *memory, bool setAsMediaBlockImage, ui
|
||||
imageCount = 1;
|
||||
}
|
||||
|
||||
bool isImageArray = getImageDesc().image_array_size > 1;
|
||||
const auto arraySize = getImageDesc().image_array_size;
|
||||
const bool isNv12 = IsNV12Image(&getImageFormat());
|
||||
bool isImageArray = (arraySize > 1u || (isNv12 && arraySize == 1u));
|
||||
|
||||
uint32_t renderTargetViewExtent = static_cast<uint32_t>(imageCount);
|
||||
uint32_t minimumArrayElement = 0;
|
||||
|
||||
Reference in New Issue
Block a user