VirtualBox

Ignore:
Timestamp:
Mar 22, 2024 12:38:39 PM (8 months ago)
Author:
vboxsync
Message:

Addition/3D,Additions/WINNT/Graphics: Updates for mesa-24.0.2 (not enabled yet). bugref:10606

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/3D/win/VBoxSVGA/winsys/vmw_screen.c

    r98103 r103999  
    5454#include "util/os_file.h"
    5555#include "util/u_memory.h"
     56#if VBOX_MESA_V_MAJOR < 24
    5657#include "pipe/p_compiler.h"
     58#else
     59#include "util/compiler.h"
     60#endif
    5761#include "util/u_hash_table.h"
    5862
     
    8690   vws->open_count = 1;
    8791   vws->ioctl.drm_fd = -1; /* not used */
    88    vws->force_coherent = FALSE;
     92   vws->force_coherent = false;
    8993   if (!vmw_ioctl_init(vws))
    9094      goto out_no_ioctl;
    9195
    9296   vws->base.have_gb_dma = !vws->force_coherent;
    93    vws->base.need_to_rebind_resources = FALSE;
     97   vws->base.need_to_rebind_resources = false;
    9498   vws->base.have_transfer_from_buffer_cmd = vws->base.have_vgpu10;
    95    vws->base.have_constant_buffer_offset_cmd = FALSE;
    96    vws->cache_maps = FALSE;
     99#if VBOX_MESA_V_MAJOR < 24
     100   vws->base.have_constant_buffer_offset_cmd = false;
     101#else
     102   vws->base.have_constant_buffer_offset_cmd =
     103      vws->ioctl.have_drm_2_20 && vws->base.have_sm5;
     104   vws->base.have_index_vertex_buffer_offset_cmd = false;
     105   vws->base.have_rasterizer_state_v2_cmd =
     106      vws->ioctl.have_drm_2_20 && vws->base.have_sm5;
     107#endif
     108
     109   vws->cache_maps = false;
    97110   vws->fence_ops = vmw_fence_ops_create(vws);
    98111   if (!vws->fence_ops)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette