~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/drivers/virgl/virgl_resource.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
static unsigned
310
310
virgl_transfer_map_size(struct virgl_transfer *vtransfer,
311
311
                        unsigned *out_stride,
312
 
                        unsigned *out_layer_stride)
 
312
                        uintptr_t *out_layer_stride)
313
313
{
314
314
   struct pipe_resource *pres = vtransfer->base.resource;
315
315
   struct pipe_box *box = &vtransfer->base.box;
316
316
   unsigned stride;
317
 
   unsigned layer_stride;
 
317
   uintptr_t layer_stride;
318
318
   unsigned size;
319
319
 
320
320
   assert(out_stride);
349
349
   unsigned size;
350
350
   unsigned align_offset;
351
351
   unsigned stride;
352
 
   unsigned layer_stride;
 
352
   uintptr_t layer_stride;
353
353
   void *map_addr;
354
354
   bool alloc_succeeded;
355
355
 
762
762
 
763
763
   /* assign blob resource a type in case it was created untyped */
764
764
   if (res->blob_mem && plane == 0 &&
765
 
       (vs->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_UNTYPED_RESOURCE)) {
 
765
       (vs->caps.caps.v2.host_feature_check_version >= 18 ||
 
766
        (vs->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_UNTYPED_RESOURCE))) {
766
767
      uint32_t plane_strides[VIRGL_MAX_PLANE_COUNT];
767
768
      uint32_t plane_offsets[VIRGL_MAX_PLANE_COUNT];
768
769
      uint32_t plane_count = 0;