Lines Matching refs:format

75 	// Compatible format for VK_FORMAT_R8_UNORM
106 VkFormat format,
116 format,
135 VkFormat format,
146 format,
325 VkFormat format;
335 , format (format_)
347 , format (VK_FORMAT_UNDEFINED)
411 void checkImageFeatureSupport (Context& context, VkFormat format, VkFormatFeatureFlags req)
415 format);
423 checkImageSupport(context, params.format, params.createFlags);
424 checkImageFeatureSupport(context, params.format, VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT | VK_FORMAT_FEATURE_TRANSFER_DST_BIT | VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT);
460 std::unique_ptr<PixelSetter> getPixelSetter (const tcu::PixelBufferAccess& access, VkFormat format)
464 if (isIntFormat(format))
466 else if (isUintFormat(format))
475 // using that format. Padding bits may not be preserved, so we can only compare results for bits which have meaning on both formats.
492 de::Random randomGen (deInt32Hash((deUint32)params.format) ^
500 const VkFormat format = params.format;
502 const PlanarFormatDescription formatInfo = getPlanarFormatDescription(format);
505 const Unique<VkImage> image (createTestImage(vkd, device, format, size, createFlags));
509 const vector<AllocationSp> allocations (allocateAndBindImageMemory(vkd, device, context.getDefaultAllocator(), *image, format, createFlags));
543 format,
564 const Unique<VkImageView> wholeView (createImageView(vkd, device, *image, format, VK_IMAGE_ASPECT_COLOR_BIT, &samplerConversionInfo));
621 format, // format;
651 MultiPlaneImageData imageData (format, size);
758 // This is not the original *full* image format, but that of the specific plane we worked with (e.g. G10X6_etc becomes R10X6).
764 // The common ground will be the padded format if it exists or the original format if it doesn't.
765 // The padded format is chosen as a priority because, if it exists, some bits may have been lost there.
769 // Re-pack results into the plane-specific format. For that, we use the compatible format first to create an image.
775 // uint32_t values, depending on the underlying plane compatible format, when used as the ShaderExecutor output.
777 // the plane compatible format, and call the appropriate value-setting method of repackedCompatibleAccess.
781 // Finally, we create an access to the same data with the comparison format for the plane.
786 // Now we compare that access with the original texture values sampled in the comparison format.
829 name << de::toLower(de::toString(params.format).substr(10));
854 const VkFormat format = (VkFormat)formatNdx;
855 const deUint32 numPlanes = getPlaneCount(format);
870 const VkFormat planeFormat = getPlaneCompatibleFormat(format, planeNdx);
871 // Add test case using image view with a format taken from the "Plane Format Compatibility Table"
872 addPlaneViewCase(group, TestParameters(viewType, format, size, flags, planeNdx, planeFormat, shaderType, DE_FALSE));
874 // Add test cases using image view with a format that is compatible with the plane's format.
884 addPlaneViewCase(group, TestParameters(viewType, format, size, flags, planeNdx, compatibleFormat, shaderType, DE_TRUE));