mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
d3d12: Fix warning C4389: An == or != operation involved signed and unsigned variables. This could result in a loss of data.
Reviewed-By: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Jesse Natalie <None> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32979>
This commit is contained in:
parent
56484fd010
commit
15dd8cd9a8
2 changed files with 2 additions and 2 deletions
|
|
@ -1868,7 +1868,7 @@ d3d12_disable_fake_so_buffers(struct d3d12_context *ctx)
|
|||
|
||||
if (key.fake_so_buffer_copy_back.num_ranges > 0) {
|
||||
auto& last_range = key.fake_so_buffer_copy_back.ranges[key.fake_so_buffer_copy_back.num_ranges - 1];
|
||||
if (output.dst_offset * 4 == last_range.offset + last_range.size) {
|
||||
if (output.dst_offset * 4 == static_cast<unsigned>(last_range.offset + last_range.size)) {
|
||||
last_range.size += static_cast<uint16_t>(output.num_components * 4);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -453,7 +453,7 @@ lower_instr(nir_intrinsic_instr *instr, nir_builder *b,
|
|||
|
||||
if (instr->intrinsic == nir_intrinsic_load_uniform) {
|
||||
nir_foreach_variable_with_modes(var, b->shader, nir_var_uniform) {
|
||||
if (var->data.driver_location == nir_intrinsic_base(instr)) {
|
||||
if (var->data.driver_location == (unsigned int) nir_intrinsic_base(instr)) {
|
||||
variable = var;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue