Skip to content

Commit

Permalink
Merge pull request KhronosGroup#223 from jpark37/colorspace-common-in…
Browse files Browse the repository at this point in the history
…stance

Fix instance mixing in surfaceFormatRenderTest
  • Loading branch information
alegal-arm authored Aug 27, 2020
2 parents 94ee680 + 6e1918d commit 11fcbbf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,13 @@ tcu::TestStatus basicExtensionTest (Context& context, Type wsiType)

tcu::TestStatus surfaceFormatRenderTest (Context& context,
Type wsiType,
const InstanceHelper& instHelper,
const DeviceHelper& devHelper,
VkSurfaceKHR surface,
VkSurfaceFormatKHR curFmt,
deBool checkHdr = false)
{
const tcu::UVec2 desiredSize (256, 256);
const InstanceHelper instHelper (context, wsiType);
const DeviceHelper devHelper (context, instHelper.vki, instHelper.instance, surface);
const DeviceInterface& vkd = devHelper.vkd;
const VkDevice device = *devHelper.device;
SimpleAllocator allocator (vkd, device, getPhysicalDeviceMemoryProperties(instHelper.vki, devHelper.physicalDevice));
Expand Down Expand Up @@ -593,7 +593,7 @@ tcu::TestStatus surfaceFormatRenderTests (Context& context, Type wsiType)
*surface);
for (vector<VkSurfaceFormatKHR>::const_iterator curFmt = formats.begin(); curFmt != formats.end(); ++curFmt)
{
surfaceFormatRenderTest(context, wsiType, *surface, *curFmt);
surfaceFormatRenderTest(context, wsiType, instHelper, devHelper, *surface, *curFmt);
}
return tcu::TestStatus::pass("Rendering tests succeeded");
}
Expand All @@ -614,7 +614,7 @@ tcu::TestStatus surfaceFormatRenderWithHdrTests (Context& context, Type wsiType)
*surface);
for (vector<VkSurfaceFormatKHR>::const_iterator curFmt = formats.begin(); curFmt != formats.end(); ++curFmt)
{
surfaceFormatRenderTest(context, wsiType, *surface, *curFmt, true);
surfaceFormatRenderTest(context, wsiType, instHelper, devHelper, *surface, *curFmt, true);
}
return tcu::TestStatus::pass("Rendering tests succeeded");
}
Expand Down

0 comments on commit 11fcbbf

Please sign in to comment.