Displaying 12 results from an estimated 12 matches for "tgsi_file_input".
2016 Feb 22
4
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...load_input().
>>
>> Right, the uploading side I understand, the question is how to get to
>> them from
>> the compute kernel's tgsi code ?
>
> Right, I wonder if there is already a DECL INPUT or something like that for input parameters of shaders. Oh yeah, there is TGSI_FILE_INPUT, maybe this is what you want?
Yes that sounds right, so now "all" we need to do is make
nvXX_compute_upload_input() and TGSI_FILE_INPUT work together.
Regards,
Hans
2009 Sep 12
0
[PATCH 09/13] nv50: move allocation of pc regs
...= pc->insn_nr;
+			reg[dst->Index * 4 + c].acc = pc->insn_nr;
 		}
 	}
 
 	for (i = 0; i < insn->Instruction.NumSrcRegs; i++) {
 		src = &insn->FullSrcRegisters[i];
 
-		switch (src->SrcRegister.File) {
-		case TGSI_FILE_TEMPORARY:
-			acc_p = r_usage[0];
-			break;
-		case TGSI_FILE_INPUT:
-			acc_p = r_usage[1];
-			break;
-		default:
+		if (src->SrcRegister.File == TGSI_FILE_TEMPORARY)
+			reg = pc->temp;
+		else
+		if (src->SrcRegister.File == TGSI_FILE_INPUT)
+			reg = pc->attr;
+		else
 			continue;
-		}
 
 		mask = nv50_tgsi_src_mask(insn, i);
 
 		for (c = 0; c &l...
2019 Oct 14
1
[PATCH] nv50/ir: mark STORE destination inputs as used
...nv50_ir_from_tgsi.cpp
@@ -1591,6 +1591,12 @@ bool Source::scanInstruction(const struct tgsi_full_instruction *inst)
       if (insn.getOpcode() == TGSI_OPCODE_STORE &&
           dst.getFile() != TGSI_FILE_MEMORY) {
          info->io.globalAccess |= 0x2;
+
+         if (dst.getFile() == TGSI_FILE_INPUT) {
+            // TODO: Handle indirect somehow?
+            const int i = dst.getIndex(0);
+            info->in[i].mask |= 1;
+         }
       }
 
       if (dst.getFile() == TGSI_FILE_OUTPUT) {
-- 
2.21.0
2016 Feb 22
0
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...ght, the uploading side I understand, the question is how to get to
>>> them from
>>> the compute kernel's tgsi code ?
>>
>> Right, I wonder if there is already a DECL INPUT or something like
>> that for input parameters of shaders. Oh yeah, there is
>> TGSI_FILE_INPUT, maybe this is what you want?
>
> Yes that sounds right, so now "all" we need to do is make
> nvXX_compute_upload_input() and TGSI_FILE_INPUT work together.
>
> Regards,
>
> Hans
-- 
-Samuel
2016 Feb 22
0
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...ght, the uploading side I understand, the question is how to get to
>>> them from
>>> the compute kernel's tgsi code ?
>>
>>
>> Right, I wonder if there is already a DECL INPUT or something like that
>> for input parameters of shaders. Oh yeah, there is TGSI_FILE_INPUT, maybe
>> this is what you want?
>
>
> Yes that sounds right, so now "all" we need to do is make
> nvXX_compute_upload_input() and TGSI_FILE_INPUT work together.
INPUT is for shader inputs which come from fixed function loaders.
This is not what you want. You want CONST...
2016 Feb 22
2
Dealing with opencl kernel parameters in nouveau now that RES support is gone
Hi,
On 22-02-16 13:41, Samuel Pitoiset wrote:
> Hi there,
>
> On 02/22/2016 12:26 PM, Hans de Goede wrote:
<snip>
>> So back to the problem of getting OpenCL(ish) code to work again with
>> the recent mesa changes. For starters I would like to get:
>>
>> src/gallium/tests/trivial/compute.c and then the test with mask 8,
>> test_input_global() to work
2016 Feb 22
0
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...oaded by nvXX_compute_upload_input().
>
> Right, the uploading side I understand, the question is how to get to
> them from
> the compute kernel's tgsi code ?
Right, I wonder if there is already a DECL INPUT or something like that 
for input parameters of shaders. Oh yeah, there is TGSI_FILE_INPUT, 
maybe this is what you want?
>
> If I understand you correctly you are suggesting to use BUFFER[0] for this,
> that is fine from a nouveau point-of-view, but might be a bit nouveau
> centric way of looking at things, I think a better approach would be
> a separate input register-f...
2014 Feb 21
3
[PATCH 1/4] nv30: remove use_nv4x, it is identical to is_nv4x
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
Perhaps there was a day when those were different, but that day is not today.
 src/gallium/drivers/nouveau/nv30/nv30_context.c  |  1 -
 src/gallium/drivers/nouveau/nv30/nv30_context.h  |  1 -
 src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c | 20 ++++++++++----------
 src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c |  8 ++++----
 4
2009 Sep 12
0
[PATCH 10/13] nv50: proper linkage between VP and FP
...= PIPE_SHADER_FRAGMENT)
+					break;
+
+				si = d->Semantic.SemanticIndex;
+				switch (d->Semantic.SemanticName) {
+					/*
+				case TGSI_SEMANTIC_CLIP_DISTANCE:
+					p->cfg.clpd = MIN2(p->cfg.clpd, first);
+					break;
+					*/
+				default:
+					break;
+				}
 				break;
 			case TGSI_FILE_INPUT:
 			{
-				if (pc->p->type != PIPE_SHADER_FRAGMENT)
+				if (p->type != PIPE_SHADER_FRAGMENT)
 					break;
 
 				switch (d->Declaration.Interpolate) {
 				case TGSI_INTERPOLATE_CONSTANT:
 					mode = INTERP_FLAT;
+					flat_nr++;
 					break;
 				case TGSI_INTERPOLATE_PERSPECTIVE:...
2009 May 06
2
nv50: shader generation patches
Hi ! I've been trying to improve NV50 shader generation a bit the last couple of weeks, so here is
what I've produced. I don't know if it's usable for you or just a pile of horrible hacks, but at
least it makes some mesa demos render more correcly, p.e. the teapot (aside from mip-mapping issues
of the floor texture), arbfplight, and I think the gears also didn't appear as they
2015 May 17
14
[PATCH 00/12] Tessellation support for nvc0
This is enough to enable tessellation support on nvc0. It seems to
work a lot better on my GF108 than GK208. I suspect that there's some
sort of scheduling shenanigans that need to be adjusted for
kepler+. Or perhaps some shader header things.
Even with the GF108, I still get occasional blue triangles in Heaven,
but I get a *ton* of them on the GK208 -- seemingly the same issue,
but it's
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