File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ uint32_t khrn_image_get_alpha_size(KHRN_IMAGE_FORMAT_T format)
150150uint32_t khrn_image_get_z_size (KHRN_IMAGE_FORMAT_T format )
151151{
152152 if (khrn_image_is_depth (format ) && (format & IMAGE_FORMAT_Z )) {
153- if (format == DEPTH_32_TLBD || DEPTH_COL_64_TLBD )
153+ if (format == DEPTH_32_TLBD || format == DEPTH_COL_64_TLBD )
154154 return 24 ;
155155 switch (format & IMAGE_FORMAT_PIXEL_SIZE_MASK ) {
156156 case IMAGE_FORMAT_32 : return 24 ;
@@ -170,7 +170,7 @@ uint32_t khrn_image_get_z_size(KHRN_IMAGE_FORMAT_T format)
170170uint32_t khrn_image_get_stencil_size (KHRN_IMAGE_FORMAT_T format )
171171{
172172 if (khrn_image_is_depth (format ) && (format & IMAGE_FORMAT_STENCIL )) {
173- if (format == DEPTH_32_TLBD || DEPTH_COL_64_TLBD )
173+ if (format == DEPTH_32_TLBD || format == DEPTH_COL_64_TLBD )
174174 return 8 ;
175175 vcos_assert ((format & IMAGE_FORMAT_PIXEL_SIZE_MASK ) == IMAGE_FORMAT_32 );
176176 return 8 ;
You can’t perform that action at this time.
0 commit comments