mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Change pipeline select programing
- Program one PS with gpgpu selection and media sampler - Program PS only when media sampler requirement changed or when preamble was not sent Change-Id: I85ba3f74087733e79d048e120aeb8b4b04796e00
This commit is contained in:

committed by
sys_ocldev

parent
ae1213a98d
commit
13ac81f465
@ -558,19 +558,9 @@ HWTEST_P(EnqueueWorkItemTests, InterfaceDescriptorData) {
|
||||
}
|
||||
|
||||
HWTEST_P(EnqueueWorkItemTests, PipelineSelect) {
|
||||
typedef typename FamilyType::PARSE PARSE;
|
||||
typedef typename PARSE::PIPELINE_SELECT PIPELINE_SELECT;
|
||||
|
||||
enqueueKernel<FamilyType>();
|
||||
|
||||
ASSERT_NE(cmdList.end(), itorPipelineSelect);
|
||||
auto *cmd = (PIPELINE_SELECT *)*itorPipelineSelect;
|
||||
|
||||
// Verify we have a valid length
|
||||
EXPECT_EQ(PIPELINE_SELECT::PIPELINE_SELECTION_GPGPU, cmd->getPipelineSelection());
|
||||
|
||||
// Specifying GPGPU mode requires setting equivalent mask bits.
|
||||
EXPECT_EQ(0x3u, cmd->getMaskBits() & 0x3);
|
||||
int numCommands = getNumberOfPipelineSelectsThatEnablePipelineSelect<FamilyType>();
|
||||
EXPECT_EQ(1, numCommands);
|
||||
}
|
||||
|
||||
HWTEST_P(EnqueueWorkItemTests, MediaVFEState) {
|
||||
|
Reference in New Issue
Block a user