d3d12: Predication fix: For boolean queries used for predication, D3D12 uses uint64, so clear at least a uint64 in the result
Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14486>
This commit is contained in:
@@ -191,7 +191,7 @@ accumulate_result(struct d3d12_context *ctx, struct d3d12_query *q,
|
||||
D3D12_QUERY_DATA_PIPELINE_STATISTICS *results_stats = (D3D12_QUERY_DATA_PIPELINE_STATISTICS *)results;
|
||||
D3D12_QUERY_DATA_SO_STATISTICS *results_so = (D3D12_QUERY_DATA_SO_STATISTICS *)results;
|
||||
|
||||
util_query_clear_result(result, q->type);
|
||||
memset(result, 0, sizeof(*result));
|
||||
for (unsigned i = 0; i < q->curr_query; ++i) {
|
||||
switch (q->type) {
|
||||
case PIPE_QUERY_OCCLUSION_PREDICATE:
|
||||
|
||||
Reference in New Issue
Block a user