Displaying 19 results from an estimated 19 matches for "tgsi_dump".
2017 Nov 14
3
[PATCH] nouveau/codegen: dump tgsi floats as hex values
.../codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
@@ -1095,7 +1095,7 @@ Source::Source(struct nv50_ir_prog_info *prog) : info(prog)
tokens = (const struct tgsi_token *)info->bin.source;
if (prog->dbgFlags & NV50_IR_DEBUG_BASIC)
- tgsi_dump(tokens, 0);
+ tgsi_dump(tokens, TGSI_DUMP_FLOAT_AS_HEX);
}
Source::~Source()
--
2.15.0
2017 Nov 15
2
[PATCH] nouveau/codegen: dump tgsi floats as hex values
...4}
IMM[7] FLT32 { 0.0000, 0.0000, 0.0000, 0.0000} IMM[7] FLT32 {0x00000014, 0x0000000a, 0x0000000f, 0x00000019}
Greetings,
Tobias
PS: I have no push rights to commit this!
On 11/15/17 10:44 PM, Pierre Moreau wrote:
> This looks like the saner approach, compared to changing tgsi_dump.c to display
> more fractional digits. Maybe there could be a second option to display as both
> float and hex?
>
> Reviewed-by: Pierre Moreau <pierre.morrow at free.fr>
>
> On 2017-11-14 — 15:11, Tobias Klausmann wrote:
>> Printing without this could lead to the follo...
2009 Nov 10
1
[PATCH] Add missing include
fixes the following warning:
nv30_fragprog.c:710: warning: implicit declaration of function 'tgsi_dump'
---
src/gallium/drivers/nv30/nv30_fragprog.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/nv30/nv30_fragprog.c b/src/gallium/drivers/nv30/nv30_fragprog.c
index cc03854..b42a7be 100644
--- a/src/gallium/drivers/nv30/nv30_fragprog.c
+++ b/src/gall...
2016 Mar 10
8
[PATCH mesa 0/3] tgsi and nouveau global / local / opencl-input mem support
Hi,
Here are patches which implement the support for OpenCL kernel input
parameters we discussed. They also add the tgsi parsing bits for
adding support for global / local mem, but no implementation yet.
Regards,
Hans
2016 Mar 10
1
[Mesa-dev] [PATCH mesa 2/3] tgsi: Add support for global / local / input MEMORY
...T" allows drivers
> to use an access mechanism for parameter reads which matches with the
> upload method.
>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> ---
> src/gallium/auxiliary/tgsi/tgsi_build.c | 8 +++----
> src/gallium/auxiliary/tgsi/tgsi_dump.c | 9 ++++++--
> src/gallium/auxiliary/tgsi/tgsi_text.c | 14 ++++++++++--
> src/gallium/auxiliary/tgsi/tgsi_ureg.c | 25
> ++++++++++++----------
> src/gallium/auxiliary/tgsi/tgsi_ureg.h | 2 +-
> .../drivers/nouveau/codegen/nv50_ir...
2016 Mar 16
5
[PATCH mesa v2 1/3] tgsi: Fix decl.Atomic and .Shared not propagating when parsing tgsi text
When support for decl.Atomic and .Shared was added, tgsi_build_declaration
was not updated to propagate these properly.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
Changes in v2:
-Add Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/auxiliary/tgsi/tgsi_build.c | 6 ++++++
1 file changed, 6
2016 Mar 10
0
[PATCH mesa 2/3] tgsi: Add support for global / local / input MEMORY
...launch_grid, "MEMORY[x], INPUT" allows drivers
to use an access mechanism for parameter reads which matches with the
upload method.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/gallium/auxiliary/tgsi/tgsi_build.c | 8 +++----
src/gallium/auxiliary/tgsi/tgsi_dump.c | 9 ++++++--
src/gallium/auxiliary/tgsi/tgsi_text.c | 14 ++++++++++--
src/gallium/auxiliary/tgsi/tgsi_ureg.c | 25 ++++++++++++----------
src/gallium/auxiliary/tgsi/tgsi_ureg.h | 2 +-
.../drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 7 +++-...
2016 Mar 16
0
[PATCH mesa v2 2/3] tgsi: Add support for global / private / input MEMORY
...du>
---
Changes in v2:
-Drop mention of GLSL global / GLSL local from comments
-Change TGSI_MEMORY_TYPE_LOCAL to TGSI_MEMORY_TYPE_PRIVATE
-Add Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/auxiliary/tgsi/tgsi_build.c | 8 +++----
src/gallium/auxiliary/tgsi/tgsi_dump.c | 9 ++++++--
src/gallium/auxiliary/tgsi/tgsi_text.c | 14 ++++++++++--
src/gallium/auxiliary/tgsi/tgsi_ureg.c | 25 ++++++++++++----------
src/gallium/auxiliary/tgsi/tgsi_ureg.h | 2 +-
.../drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 7 +++-...
2017 Nov 15
0
[PATCH] nouveau/codegen: dump tgsi floats as hex values
This looks like the saner approach, compared to changing tgsi_dump.c to display
more fractional digits. Maybe there could be a second option to display as both
float and hex?
Reviewed-by: Pierre Moreau <pierre.morrow at free.fr>
On 2017-11-14 — 15:11, Tobias Klausmann wrote:
> Printing without this could lead to the following output, while the values ar...
2017 Nov 16
0
[PATCH] nouveau/codegen: dump tgsi floats as hex values
...IMM[7] FLT32
> {0x00000014, 0x0000000a, 0x0000000f, 0x00000019}
>
> Greetings,
>
> Tobias
>
>
> PS: I have no push rights to commit this!
>
>
>
> On 11/15/17 10:44 PM, Pierre Moreau wrote:
>>
>> This looks like the saner approach, compared to changing tgsi_dump.c to
>> display
>> more fractional digits. Maybe there could be a second option to display as
>> both
>> float and hex?
>>
>> Reviewed-by: Pierre Moreau <pierre.morrow at free.fr>
>>
>> On 2017-11-14 — 15:11, Tobias Klausmann wrote:
>>>...
2016 Mar 10
0
[Mesa-dev] [PATCH mesa 2/3] tgsi: Add support for global / local / input MEMORY
...; to use an access mechanism for parameter reads which matches with the
>> upload method.
>>
>> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
>> ---
>> src/gallium/auxiliary/tgsi/tgsi_build.c | 8 +++----
>> src/gallium/auxiliary/tgsi/tgsi_dump.c | 9 ++++++--
>> src/gallium/auxiliary/tgsi/tgsi_text.c | 14 ++++++++++--
>> src/gallium/auxiliary/tgsi/tgsi_ureg.c | 25
>> ++++++++++++----------
>> src/gallium/auxiliary/tgsi/tgsi_ureg.h | 2 +-
>> .../drivers...
2017 Jun 12
3
[Mesa-dev] [RFC 0/9] Add precise/invariant semantics to TGSI
...>> nv50/ir/tgsi: handle precise for most ALU instructions
>> nv50/ir: disable mul+add to mad for precise instructions
>> nv50/ir/tgsi: split mad to mul+add
>>
>> src/gallium/auxiliary/tgsi/tgsi_build.c | 4 +
>> src/gallium/auxiliary/tgsi/tgsi_dump.c | 4 +
>> src/gallium/auxiliary/tgsi/tgsi_text.c | 15 +++-
>> src/gallium/auxiliary/tgsi/tgsi_ureg.c | 14 +++-
>> src/gallium/auxiliary/tgsi/tgsi_ureg.h | 20 ++++-
>> src/gallium/auxiliary/util/u_simple_shaders.c...
2017 Jun 11
14
[RFC 0/9] Add precise/invariant semantics to TGSI
...ECISE modifier
nv50/ir: add precise field to Instruction
nv50/ir/tgsi: handle precise for most ALU instructions
nv50/ir: disable mul+add to mad for precise instructions
nv50/ir/tgsi: split mad to mul+add
src/gallium/auxiliary/tgsi/tgsi_build.c | 4 +
src/gallium/auxiliary/tgsi/tgsi_dump.c | 4 +
src/gallium/auxiliary/tgsi/tgsi_text.c | 15 +++-
src/gallium/auxiliary/tgsi/tgsi_ureg.c | 14 +++-
src/gallium/auxiliary/tgsi/tgsi_ureg.h | 20 ++++-
src/gallium/auxiliary/util/u_simple_shaders.c | 2 +-
src/gallium/drivers/nouveau/co...
2017 Jun 12
0
[Mesa-dev] [RFC 0/9] Add precise/invariant semantics to TGSI
...se field to Instruction
> nv50/ir/tgsi: handle precise for most ALU instructions
> nv50/ir: disable mul+add to mad for precise instructions
> nv50/ir/tgsi: split mad to mul+add
>
> src/gallium/auxiliary/tgsi/tgsi_build.c | 4 +
> src/gallium/auxiliary/tgsi/tgsi_dump.c | 4 +
> src/gallium/auxiliary/tgsi/tgsi_text.c | 15 +++-
> src/gallium/auxiliary/tgsi/tgsi_ureg.c | 14 +++-
> src/gallium/auxiliary/tgsi/tgsi_ureg.h | 20 ++++-
> src/gallium/auxiliary/util/u_simple_shaders.c | 2 +-
>...
2017 Jun 13
0
[Mesa-dev] [RFC 0/9] Add precise/invariant semantics to TGSI
.../tgsi: handle precise for most ALU instructions
>>> nv50/ir: disable mul+add to mad for precise instructions
>>> nv50/ir/tgsi: split mad to mul+add
>>>
>>> src/gallium/auxiliary/tgsi/tgsi_build.c | 4 +
>>> src/gallium/auxiliary/tgsi/tgsi_dump.c | 4 +
>>> src/gallium/auxiliary/tgsi/tgsi_text.c | 15 +++-
>>> src/gallium/auxiliary/tgsi/tgsi_ureg.c | 14 +++-
>>> src/gallium/auxiliary/tgsi/tgsi_ureg.h | 20 ++++-
>>> src/gallium/auxiliary/util/u_simpl...
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 Jun 24
0
[PATCH] nv50: fix previous patches
...50_program.c
index 4b05075..caf03c9 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -28,11 +28,12 @@
#include "pipe/p_shader_tokens.h"
#include "tgsi/tgsi_parse.h"
#include "tgsi/tgsi_util.h"
+#include "tgsi/tgsi_dump.h"
#include "nv50_context.h"
#define NV50_SU_MAX_TEMP 64
-//#define NV50_PROGRAM_DUMP
+/* #define NV50_PROGRAM_DUMP */
/* ARL - gallium craps itself on progs/vp/arl.txt
*
@@ -44,7 +45,7 @@
* case, if the emit_src() causes the inst to suddenly become long.
*
* Verify...
2016 Jan 14
0
[PATCH] nv50/ir: only use FILE_LOCAL_MEMORY for temp arrays that use indirection
...ion> locals;
- bool mainTempsInLMem;
+ std::set<int> indirectTempArrays;
+ std::vector<int> tempArrayId;
int clipVertexOutput;
@@ -859,8 +874,6 @@ Source::Source(struct nv50_ir_prog_info *prog) : info(prog)
if (prog->dbgFlags & NV50_IR_DEBUG_BASIC)
tgsi_dump(tokens, 0);
-
- mainTempsInLMem = false;
}
Source::~Source()
@@ -890,6 +903,7 @@ bool Source::scanSource()
textureViews.resize(scan.file_max[TGSI_FILE_SAMPLER_VIEW] + 1);
resources.resize(scan.file_max[TGSI_FILE_IMAGE] + 1);
+ tempArrayId.resize(scan.file_max[TGSI_FILE_TEMPORARY]...
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