I915 GPU CRC

I915 GPU CRC — i915 gpu crc

Functions

uint32_t i915_crc32 ()
bool supports_i915_crc32 ()

Includes

#include <i915_crc.h>

Description

Introduction

Intel gpu crc calculation implementation.

Functions

i915_crc32 ()

uint32_t
i915_crc32 (int i915,
            uint64_t ahnd,
            const intel_ctx_t *ctx,
            const struct intel_execution_engine2 *e,
            uint32_t data_handle,
            uint32_t data_size);

Function calculates crc32 for data_handle with size data_size .

Parameters

i915

drm fd

 

ahnd

allocator handle

 

ctx

intel context

 

e

engine on which crc32 calculation will be executed

 

data_handle

bo which is subject of crc32 calculation

 

data_size

length of bo data to calculate (must be multiple of 4)

 

Returns

uint32_t crc32.


supports_i915_crc32 ()

bool
supports_i915_crc32 (int i915);

Parameters

i915

drm fd

 

Returns

flag if i915_crc32() is able to generate crc32 on gpu.

Types and Values