_DXGK_SEGMENTBANKPREFERENCE structure

The DXGK_SEGMENTBANKPREFERENCE structure describes bank preferences for paging in an allocation.

Syntax

typedef struct _DXGK_SEGMENTBANKPREFERENCE {
  union {
    struct {
      UINT Bank0 : 7;
      UINT Direction0 : 1;
      UINT Bank1 : 7;
      UINT Direction1 : 1;
      UINT Bank2 : 7;
      UINT Direction2 : 1;
      UINT Bank3 : 7;
      UINT Direction3 : 1;
    };
    UINT Value;
  };
} DXGK_SEGMENTBANKPREFERENCE;

Members

Remarks

The display miniport driver can indicate up to four bank preferences in the HintedBank member of a DXGK_ALLOCATIONINFO structure when the driver's DxgkDdiCreateAllocation function is called. Preferred-bank identifiers are one-based (that is, the first bank has an identifier of one). An identifier of zero indicates that the driver has no preference. The highest priority preference is specified in the Bank0 member; the lowest priority preference is specified in the Bank3 member. The driver can specify less than four preferences by setting the lower priority preferences of bank identifiers to zero. For example, the driver can specify two preferences by setting Bank0 and Bank1 to valid identifiers and Bank2 and Bank3 to zero. The driver can use each DirectionX member to specify the scanning direction for each bank preference independently.

The video memory manager allocates resources from preferred segments that the PreferredSegment member of DXGK_ALLOCATIONINFO specifies.

Requirements

   
Windows version Available in Windows Vista and later versions of the Windows operating systems.
Header d3dkmddi.h (include D3dkmddi.h)

See Also

DXGK_ALLOCATIONINFO

DXGK_ALLOCATIONLIST

DXGK_SEGMENTPREFERENCE

DxgkDdiCreateAllocation

DxgkDdiRender