Pass more information to programPipelineSelect.

Change-Id: Iaabe60742269b721f8defe71306dd6e87d60d546
This commit is contained in:
Piotr Fusik
2018-11-14 08:40:37 +01:00
committed by sys_ocldev
parent 9bdedc62dd
commit 76efeae9d8
13 changed files with 30 additions and 14 deletions

View File

@@ -7,14 +7,15 @@
#pragma once
#include "igfxfmid.h"
#include "stdint.h"
#include "runtime/helpers/pipeline_select_helper.h"
#include <cstddef>
#include <cstdint>
namespace OCLRT {
struct HardwareInfo;
class Device;
struct DispatchFlags;
class GraphicsAllocation;
class LinearStream;
@@ -26,7 +27,7 @@ struct PreambleHelper {
static constexpr size_t getScratchSpaceOffsetFor64bit() { return 4096; }
static void programL3(LinearStream *pCommandStream, uint32_t l3Config);
static void programPipelineSelect(LinearStream *pCommandStream, bool mediaSamplerRequired);
static void programPipelineSelect(LinearStream *pCommandStream, const DispatchFlags &dispatchFlags);
static uint32_t getDefaultThreadArbitrationPolicy();
static void programThreadArbitration(LinearStream *pCommandStream, uint32_t requiredThreadArbitrationPolicy);
static void programPreemption(LinearStream *pCommandStream, Device &device, GraphicsAllocation *preemptionCsr);