search for: file_memory_const

Displaying 20 results from an estimated 22 matches for "file_memory_const".

2014 Mar 11
2
[PATCH] nv50/ir/gk110: fix some instruction emission
...// XXX: find saturate + SAT_(35, 0); } void @@ -1073,32 +1072,32 @@ CodeEmitterGK110::emitFlow(const Instruction *i) switch (i->op) { case OP_BRA: - code[1] = f->absolute ? 0x00000 : 0x12000000; // XXX - // if (i->srcExists(0) && i->src(0).getFile() == FILE_MEMORY_CONST) - // code[0] |= 0x4000; + code[1] = f->absolute ? 0x11000000 : 0x12000000; + if (i->srcExists(0) && i->src(0).getFile() == FILE_MEMORY_CONST) + code[0] |= 0x80; mask = 3; break; case OP_CALL: - code[1] = f->absolute ? 0x00000 : 0x...
2016 Mar 17
4
[PATCH mesa v2 1/2] nouveau: codegen: Use FILE_MEMORY_BUFFER for buffers
...(+), 5 deletions(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.h b/src/gallium/drivers/nouveau/codegen/nv50_ir.h index 7b0eb2f..5141fc6 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.h +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.h @@ -332,6 +332,7 @@ enum DataFile FILE_MEMORY_CONST, FILE_SHADER_INPUT, FILE_SHADER_OUTPUT, + FILE_MEMORY_BUFFER, FILE_MEMORY_GLOBAL, FILE_MEMORY_SHARED, FILE_MEMORY_LOCAL, diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp index baa2e30..7ae0cb2 10...
2014 Mar 11
0
[PATCH] nv50/ir/gk110: fix some instruction emission
...gt; } > > void > @@ -1073,32 +1072,32 @@ CodeEmitterGK110::emitFlow(const Instruction *i) > > switch (i->op) { > case OP_BRA: > - code[1] = f->absolute ? 0x00000 : 0x12000000; // XXX > - // if (i->srcExists(0) && i->src(0).getFile() == FILE_MEMORY_CONST) > - // code[0] |= 0x4000; > + code[1] = f->absolute ? 0x11000000 : 0x12000000; > + if (i->srcExists(0) && i->src(0).getFile() == FILE_MEMORY_CONST) > + code[0] |= 0x80; > mask = 3; > break; > case OP_CALL: > -...
2016 Apr 08
2
[PATCH mesa v2 1/2] nouveau: codegen: Use FILE_MEMORY_BUFFER for buffers
...drivers/nouveau/codegen/nv50_ir.h b/src/gallium/drivers/nouveau/codegen/nv50_ir.h >> index 7b0eb2f..5141fc6 100644 >> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.h >> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.h >> @@ -332,6 +332,7 @@ enum DataFile >> FILE_MEMORY_CONST, >> FILE_SHADER_INPUT, >> FILE_SHADER_OUTPUT, >> + FILE_MEMORY_BUFFER, >> FILE_MEMORY_GLOBAL, >> FILE_MEMORY_SHARED, >> FILE_MEMORY_LOCAL, >> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/dri...
2016 Mar 16
2
[PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/
...t a/src/gallium/drivers/nouveau/codegen/nv50_ir.h > b/src/gallium/drivers/nouveau/codegen/nv50_ir.h > index 7b0eb2f..fdc2195 100644 > --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.h > +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.h > @@ -332,7 +332,7 @@ enum DataFile > FILE_MEMORY_CONST, > FILE_SHADER_INPUT, > FILE_SHADER_OUTPUT, > - FILE_MEMORY_GLOBAL, > + FILE_MEMORY_BUFFER, > FILE_MEMORY_SHARED, > FILE_MEMORY_LOCAL, > FILE_SYSTEM_VALUE, > diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp > b/src/gallium/dr...
2016 Mar 23
0
[PATCH mesa v2 1/2] nouveau: codegen: Use FILE_MEMORY_BUFFER for buffers
...--git a/src/gallium/drivers/nouveau/codegen/nv50_ir.h b/src/gallium/drivers/nouveau/codegen/nv50_ir.h > index 7b0eb2f..5141fc6 100644 > --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.h > +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.h > @@ -332,6 +332,7 @@ enum DataFile > FILE_MEMORY_CONST, > FILE_SHADER_INPUT, > FILE_SHADER_OUTPUT, > + FILE_MEMORY_BUFFER, > FILE_MEMORY_GLOBAL, > FILE_MEMORY_SHARED, > FILE_MEMORY_LOCAL, > diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir...
2016 Mar 16
0
[PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/
...+), 38 deletions(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.h b/src/gallium/drivers/nouveau/codegen/nv50_ir.h index 7b0eb2f..fdc2195 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.h +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.h @@ -332,7 +332,7 @@ enum DataFile FILE_MEMORY_CONST, FILE_SHADER_INPUT, FILE_SHADER_OUTPUT, - FILE_MEMORY_GLOBAL, + FILE_MEMORY_BUFFER, FILE_MEMORY_SHARED, FILE_MEMORY_LOCAL, FILE_SYSTEM_VALUE, diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp...
2016 Apr 12
2
[PATCH mesa v2 1/2] nouveau: codegen: Use FILE_MEMORY_BUFFER for buffers
...gallium/drivers/nouveau/codegen/nv50_ir.h >>>> index 7b0eb2f..5141fc6 100644 >>>> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.h >>>> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.h >>>> @@ -332,6 +332,7 @@ enum DataFile >>>> FILE_MEMORY_CONST, >>>> FILE_SHADER_INPUT, >>>> FILE_SHADER_OUTPUT, >>>> + FILE_MEMORY_BUFFER, >>>> FILE_MEMORY_GLOBAL, >>>> FILE_MEMORY_SHARED, >>>> FILE_MEMORY_LOCAL, >>>> diff --git >>>> a/sr...
2016 Mar 16
0
[PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/
...ouveau/codegen/nv50_ir.h >> b/src/gallium/drivers/nouveau/codegen/nv50_ir.h >> index 7b0eb2f..fdc2195 100644 >> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.h >> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.h >> @@ -332,7 +332,7 @@ enum DataFile >> FILE_MEMORY_CONST, >> FILE_SHADER_INPUT, >> FILE_SHADER_OUTPUT, >> - FILE_MEMORY_GLOBAL, >> + FILE_MEMORY_BUFFER, >> FILE_MEMORY_SHARED, >> FILE_MEMORY_LOCAL, >> FILE_SYSTEM_VALUE, >> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir...
2016 Apr 08
0
[PATCH mesa v2 1/2] nouveau: codegen: Use FILE_MEMORY_BUFFER for buffers
...>>> b/src/gallium/drivers/nouveau/codegen/nv50_ir.h >>> index 7b0eb2f..5141fc6 100644 >>> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.h >>> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.h >>> @@ -332,6 +332,7 @@ enum DataFile >>> FILE_MEMORY_CONST, >>> FILE_SHADER_INPUT, >>> FILE_SHADER_OUTPUT, >>> + FILE_MEMORY_BUFFER, >>> FILE_MEMORY_GLOBAL, >>> FILE_MEMORY_SHARED, >>> FILE_MEMORY_LOCAL, >>> diff --git >>> a/src/gallium/drivers/nouveau/codege...
2016 Apr 14
0
[PATCH mesa v2 1/2] nouveau: codegen: Use FILE_MEMORY_BUFFER for buffers
...eau/codegen/nv50_ir.h >>>>> index 7b0eb2f..5141fc6 100644 >>>>> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.h >>>>> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.h >>>>> @@ -332,6 +332,7 @@ enum DataFile >>>>> FILE_MEMORY_CONST, >>>>> FILE_SHADER_INPUT, >>>>> FILE_SHADER_OUTPUT, >>>>> + FILE_MEMORY_BUFFER, >>>>> FILE_MEMORY_GLOBAL, >>>>> FILE_MEMORY_SHARED, >>>>> FILE_MEMORY_LOCAL, >>>>> diff...
2016 Mar 16
13
[PATCH mesa 1/6] tgsi_build: Fix return of uninitialized memory in tgsi_*_instruction_memory
tgsi_default_instruction_memory / tgsi_build_instruction_memory were returning uninitialized memory for tgsi_instruction_memory.Texture and tgsi_instruction_memory.Format. Note 0 means not set, and thus is a correct default initializer for these. Fixes: 3243b6fc97 ("tgsi: add Texture and Format to tgsi_instruction_memory") Cc: Nicolai Hähnle <nicolai.haehnle at amd.com>
2014 May 10
2
[PATCH] nv50: fix setting of texture ms info to be per-stage
...esInfoCBSlot; off += prog->driver->io.suInfoBase; + if (prog->getType() > Program::TYPE_VERTEX) + off += 16 * 2 * 4; + if (prog->getType() > Program::TYPE_GEOMETRY) + off += 16 * 2 * 4; *ms_x = bld.mkLoadv(TYPE_U32, bld.mkSymbol( FILE_MEMORY_CONST, b, TYPE_U32, off + 0), NULL); *ms_y = bld.mkLoadv(TYPE_U32, bld.mkSymbol( diff --git a/src/gallium/drivers/nouveau/nv50/nv50_context.h b/src/gallium/drivers/nouveau/nv50/nv50_context.h index b776dee..3b7cb18 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_context.h +++ b/src/gallium/drivers...
2014 Jan 13
20
[PATCH 00/19] nv50: add sampler2DMS/GP support to get OpenGL 3.2
OK, so there's a bunch of stuff in here. The geometry stuff is based on the work started by Bryan Cain and Christoph Bumiller. Patches 01-12: Add support for geometry shaders and fix related issues Patches 13-14: Make it possible for fb clears to operate on texture attachments with an explicit layer set (as is allowed in gl 3.2). Patches 15-17: Make ARB_texture_multisample work
2016 Mar 16
2
[PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers
...LE_MEMORY_BUFFER || > + i->src(0).getFile() == FILE_MEMORY_GLOBAL) { > code[1] = 0x98000000; > srcAddr32(i->src(0), 28, 2); > } else { > @@ -3122,6 +3135,7 @@ SchedDataCalculator::checkRd(const Value *v, int cycle, int& delay) const > case FILE_MEMORY_CONST: > case FILE_MEMORY_SHARED: > case FILE_MEMORY_BUFFER: > + case FILE_MEMORY_GLOBAL: > case FILE_SYSTEM_VALUE: > // TODO: any restrictions here ? > break; > diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/driv...
2014 May 18
1
[PATCH 1/2] nv50/ir: fix s32 x s32 -> high s32 multiply logic
...rget_nv50.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp @@ -332,6 +332,8 @@ TargetNV50::insnCanLoad(const Instruction *i, int s, return false; if (sf == FILE_IMMEDIATE) return false; + if (i->subOp == NV50_IR_SUBOP_MUL_HIGH && sf == FILE_MEMORY_CONST) + return false; ldSize = 2; } else { ldSize = typeSizeof(ld->dType); -- 1.8.5.5
2016 Mar 16
0
[PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers
...if (i->src(0).getFile() == FILE_MEMORY_BUFFER || + i->src(0).getFile() == FILE_MEMORY_GLOBAL) { code[1] = 0x98000000; srcAddr32(i->src(0), 28, 2); } else { @@ -3122,6 +3135,7 @@ SchedDataCalculator::checkRd(const Value *v, int cycle, int& delay) const case FILE_MEMORY_CONST: case FILE_MEMORY_SHARED: case FILE_MEMORY_BUFFER: + case FILE_MEMORY_GLOBAL: case FILE_SYSTEM_VALUE: // TODO: any restrictions here ? break; diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cp...
2016 Mar 16
0
[PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers
...> + i->src(0).getFile() == FILE_MEMORY_GLOBAL) { >> code[1] = 0x98000000; >> srcAddr32(i->src(0), 28, 2); >> } else { >> @@ -3122,6 +3135,7 @@ SchedDataCalculator::checkRd(const Value *v, int cycle, int& delay) const >> case FILE_MEMORY_CONST: >> case FILE_MEMORY_SHARED: >> case FILE_MEMORY_BUFFER: >> + case FILE_MEMORY_GLOBAL: >> case FILE_SYSTEM_VALUE: >> // TODO: any restrictions here ? >> break; >> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from...
2017 Mar 26
5
[PATCH v5 0/5] nvc0/ir: add support for MAD/FMA PostRALoadPropagation
was "nv50/ir: PostRaConstantFolding improvements" before. nothing really changed from the last version, just minor things. Karol Herbst (5): nv50/ir: restructure and rename postraconstantfolding pass nv50/ir: implement mad post ra folding for nvc0+ gk110/ir: add LIMM form of mad gm107/ir: add LIMM form of mad nv50/ir: also do PostRaLoadPropagation for FMA
2015 May 09
5
[PATCH 1/4] nvc0/ir: avoid jumping to a sched instruction
...ex 22db368..442cedf 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp @@ -509,10 +509,13 @@ CodeEmitterGM107::emitBRA() emitCond5(0x00, CC_TR); if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { + int32_t pos = insn->target.bb->binPos; + if (writeIssueDelays && !(pos & 0x1f)) + pos += 8; if (!insn->absolute) - emitField(0x14, 24, insn->target.bb->binPos - (codeSize + 8)); + emitField(0x14, 24, pos - (codeSize + 8));...