mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Use PAUSE in vk::query_pool_manager::get_query_result
This commit is contained in:
parent
262ff01619
commit
12e3c9e08b
1 changed files with 9 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
#include "VKQueryPool.h"
|
#include "VKQueryPool.h"
|
||||||
#include "VKRenderPass.h"
|
#include "VKRenderPass.h"
|
||||||
#include "VKResourceManager.h"
|
#include "VKResourceManager.h"
|
||||||
|
#include "util/asm.hpp"
|
||||||
|
|
||||||
namespace vk
|
namespace vk
|
||||||
{
|
{
|
||||||
|
@ -157,9 +158,16 @@ namespace vk
|
||||||
{
|
{
|
||||||
// Check for cached result
|
// Check for cached result
|
||||||
auto& query_info = query_slot_status[index];
|
auto& query_info = query_slot_status[index];
|
||||||
while (!query_info.ready)
|
|
||||||
|
if (!query_info.ready)
|
||||||
{
|
{
|
||||||
poke_query(query_info, index, result_flags);
|
poke_query(query_info, index, result_flags);
|
||||||
|
|
||||||
|
while (!query_info.ready)
|
||||||
|
{
|
||||||
|
utils::pause();
|
||||||
|
poke_query(query_info, index, result_flags);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return query_info.data;
|
return query_info.data;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue