Displaying 10 results from an estimated 10 matches for "emitinsn".
2015 Feb 20
10
[PATCH 01/11] nvc0/ir: add emission of dadd/dmul/dmad opcodes, fix minmax
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
.../drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 66 +++++++++++++++++++++-
1 file changed, 63 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
index dfb093c..e38a3b8 100644
---
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
2016 Mar 16
2
[PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers
...-2417,7 +2417,8 @@ void
> CodeEmitterGM107::emitCCTL()
> {
> unsigned width;
> - if (insn->src(0).getFile() == FILE_MEMORY_BUFFER) {
> + if (insn->src(0).getFile() == FILE_MEMORY_BUFFER ||
> + insn->src(0).getFile() == FILE_MEMORY_GLOBAL) {
> emitInsn(0xef600000);
> width = 30;
> } else {
> @@ -2989,6 +2990,7 @@ CodeEmitterGM107::emitInstruction(Instruction *i)
> case FILE_MEMORY_LOCAL : emitLDL(); break;
> case FILE_MEMORY_SHARED: emitLDS(); break;
> case FILE_MEMORY_BUFFER: emitLD(); break...
2019 Oct 14
1
[PATCH] gm107/ir: fix loading z offset for layered 3d image bindings
...void emitRAM();
+ void emitPSETP();
+
void emitMOV();
void emitS2R();
void emitCS2R();
@@ -690,6 +692,31 @@ CodeEmitterGM107::emitRAM()
* predicate/cc
******************************************************************************/
+void
+CodeEmitterGM107::emitPSETP()
+{
+
+ emitInsn(0x50900000);
+
+ switch (insn->op) {
+ case OP_AND: emitField(0x18, 3, 0); break;
+ case OP_OR: emitField(0x18, 3, 1); break;
+ case OP_XOR: emitField(0x18, 3, 2); break;
+ default:
+ assert(!"unexpected operation");
+ break;
+ }
+
+ // emitINV (0x2a);
+ emit...
2016 Mar 16
0
[PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers
...veau/codegen/nv50_ir_emit_gm107.cpp
@@ -2417,7 +2417,8 @@ void
CodeEmitterGM107::emitCCTL()
{
unsigned width;
- if (insn->src(0).getFile() == FILE_MEMORY_BUFFER) {
+ if (insn->src(0).getFile() == FILE_MEMORY_BUFFER ||
+ insn->src(0).getFile() == FILE_MEMORY_GLOBAL) {
emitInsn(0xef600000);
width = 30;
} else {
@@ -2989,6 +2990,7 @@ CodeEmitterGM107::emitInstruction(Instruction *i)
case FILE_MEMORY_LOCAL : emitLDL(); break;
case FILE_MEMORY_SHARED: emitLDS(); break;
case FILE_MEMORY_BUFFER: emitLD(); break;
+ case FILE_MEMORY_GLOBAL: e...
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>
2016 Mar 16
2
[PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/
.../src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
> @@ -2417,7 +2417,7 @@ void
> CodeEmitterGM107::emitCCTL()
> {
> unsigned width;
> - if (insn->src(0).getFile() == FILE_MEMORY_GLOBAL) {
> + if (insn->src(0).getFile() == FILE_MEMORY_BUFFER) {
> emitInsn(0xef600000);
> width = 30;
> } else {
> @@ -2988,7 +2988,7 @@ CodeEmitterGM107::emitInstruction(Instruction *i)
> case FILE_MEMORY_CONST : emitLDC(); break;
> case FILE_MEMORY_LOCAL : emitLDL(); break;
> case FILE_MEMORY_SHARED: emitLDS(); break;
&g...
2016 Mar 16
0
[PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers
...> CodeEmitterGM107::emitCCTL()
>> {
>> unsigned width;
>> - if (insn->src(0).getFile() == FILE_MEMORY_BUFFER) {
>> + if (insn->src(0).getFile() == FILE_MEMORY_BUFFER ||
>> + insn->src(0).getFile() == FILE_MEMORY_GLOBAL) {
>> emitInsn(0xef600000);
>> width = 30;
>> } else {
>> @@ -2989,6 +2990,7 @@ CodeEmitterGM107::emitInstruction(Instruction *i)
>> case FILE_MEMORY_LOCAL : emitLDL(); break;
>> case FILE_MEMORY_SHARED: emitLDS(); break;
>> case FILE_MEMORY...
2016 Mar 16
0
[PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/
...odegen/nv50_ir_emit_gm107.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
@@ -2417,7 +2417,7 @@ void
CodeEmitterGM107::emitCCTL()
{
unsigned width;
- if (insn->src(0).getFile() == FILE_MEMORY_GLOBAL) {
+ if (insn->src(0).getFile() == FILE_MEMORY_BUFFER) {
emitInsn(0xef600000);
width = 30;
} else {
@@ -2988,7 +2988,7 @@ CodeEmitterGM107::emitInstruction(Instruction *i)
case FILE_MEMORY_CONST : emitLDC(); break;
case FILE_MEMORY_LOCAL : emitLDL(); break;
case FILE_MEMORY_SHARED: emitLDS(); break;
- case FILE_MEMORY_GLOBAL:...
2016 Mar 16
0
[PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/
...egen/nv50_ir_emit_gm107.cpp
>> @@ -2417,7 +2417,7 @@ void
>> CodeEmitterGM107::emitCCTL()
>> {
>> unsigned width;
>> - if (insn->src(0).getFile() == FILE_MEMORY_GLOBAL) {
>> + if (insn->src(0).getFile() == FILE_MEMORY_BUFFER) {
>> emitInsn(0xef600000);
>> width = 30;
>> } else {
>> @@ -2988,7 +2988,7 @@ CodeEmitterGM107::emitInstruction(Instruction *i)
>> case FILE_MEMORY_CONST : emitLDC(); break;
>> case FILE_MEMORY_LOCAL : emitLDL(); break;
>> case FILE_MEMORY...