Skip to content

Commit 5695cb5

Browse files
bowenxue-inteligcbot
authored andcommitted
Allow sampler R and G partial return
Allow R and G sampler partial return with additional header
1 parent f7c11b2 commit 5695cb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/Compiler/CISACodeGen/CShader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,8 +1201,8 @@ uint CShader::GetNbVectorElementAndMask(llvm::Value *val, uint32_t &mask) {
12011201
// return with addtional header
12021202
static const bool selectReturnChannels[] = {
12031203
false, // 0 0000 - should not happen
1204-
false, // 1 0001 - r
1205-
false, // 2 0010 - g
1204+
true, // 1 0001 - r
1205+
true, // 2 0010 - g
12061206
false, // 3 0011 - rg
12071207
true, // 4 0100 - b
12081208
false, // 5 0101 - r b

0 commit comments

Comments
 (0)