projects
/
platform
/
upstream
/
Vulkan-LoaderAndValidationLayers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4de98b
)
intel: Fix CreateImage format_class for linear tiled images.
author
Jon Ashburn
<jon@lunarg.com>
Wed, 21 Jan 2015 00:22:07 +0000
(17:22 -0700)
committer
Courtney Goeltzenleuchter
<courtney@LunarG.com>
Thu, 5 Feb 2015 00:58:09 +0000
(17:58 -0700)
icd/intel/img.c
patch
|
blob
|
history
diff --git
a/icd/intel/img.c
b/icd/intel/img.c
index
e9cad0c
..
9046059
100644
(file)
--- a/
icd/intel/img.c
+++ b/
icd/intel/img.c
@@
-116,7
+116,10
@@
XGL_RESULT intel_img_create(struct intel_dev *dev,
img->mip_levels = info->mipLevels;
img->array_size = info->arraySize;
img->usage = info->usage;
- img->format_class = icd_format_get_class(info->format);
+ if (info->tiling == XGL_LINEAR_TILING)
+ img->format_class = XGL_IMAGE_FORMAT_CLASS_LINEAR;
+ else
+ img->format_class = icd_format_get_class(info->format);
img->samples = info->samples;
intel_layout_init(layout, dev, info, scanout);