[Mesa-dev] [PATCH v2 6/7] tgsi/util: Change boolean for bool

2020-02-21 Thread Mark Menzynski
I was getting errors with "boolean" when compiling. This patch changes boolean to bool from . Signed-off-by: Mark Menzynski --- src/gallium/auxiliary/tgsi/tgsi_util.c | 2 +- src/gallium/auxiliary/tgsi/tgsi_util.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git

[Mesa-dev] [PATCH v2 2/7] util/blob: Add overwrite function for uint8

2020-02-21 Thread Mark Menzynski
Overwrite function for this type was missing and I needed it for my project. Signed-off-by: Mark Menzynski --- src/util/blob.c | 9 + src/util/blob.h | 15 +++ 2 files changed, 24 insertions(+) diff --git a/src/util/blob.c b/src/util/blob.c index 94d5a9dea74..5bf4b924c91

[Mesa-dev] [PATCH v2 4/7] nv50/ir: Add prog_info_out print

2020-02-21 Thread Mark Menzynski
Adds a function for printing nv50_ir_prog_info_out structure in JSON-like format, which could be used in debugging. Signed-off-by: Mark Menzynski --- .../drivers/nouveau/codegen/nv50_ir_driver.h | 3 + .../drivers/nouveau/codegen/nv50_ir_print.cpp | 153 ++ 2 files changed,

[Mesa-dev] [PATCH v2 7/7] nvc0: Add shader disk caching

2020-02-21 Thread Mark Menzynski
Adds shader disk caching for nvc0 to reduce the need to every time compile shaders. Shaders are saved into disk_shader_cache from nvc0_screen structure. It serializes the input nv50_ir_prog_info to compute the hash key and also to do a byte compare between the original nv50_ir_prog_info and the

[Mesa-dev] [PATCH v2 5/7] nv50/ir: Add nv50_ir_prog_info serialize

2020-02-21 Thread Mark Menzynski
Adds a function for serializing a nv50_ir_prog_info structure, which is needed for shader caching. Signed-off-by: Mark Menzynski --- .../drivers/nouveau/codegen/nv50_ir_driver.h | 4 + .../nouveau/codegen/nv50_ir_serialize.cpp | 81 +++ 2 files changed, 85 insertions(+)

[Mesa-dev] [PATCH v2 1/7] nv50/ir: add nv50_ir_prog_info_out

2020-02-21 Thread Mark Menzynski
From: Karol Herbst Split out the output relevant fields from the nv50_ir_prog_info struct in order to have a cleaner separation between the input and output of the compilation. Signed-off-by: Karol Herbst --- .../drivers/nouveau/codegen/nv50_ir.cpp | 49 ++--

[Mesa-dev] [PATCH v2 3/7] nv50/ir: Add nv50_ir_prog_info_out serialize and deserialize

2020-02-21 Thread Mark Menzynski
Adds functions for serializing and deserializing nv50_ir_prog_info_out structure, which are needed for shader caching. Signed-off-by: Mark Menzynski --- .../drivers/nouveau/codegen/nv50_ir_driver.h | 44 .../nouveau/codegen/nv50_ir_emit_gk110.cpp| 14 +-

Re: [Mesa-dev] size of LP_MAX_VBUF_SIZE

2020-02-21 Thread Jose Fonseca
I tried to track down that define in git history, but there weren't many clues. That define seems to go all the way back to softpipe (see `#define SP_MAX_VBUF_SIZE4096` on src/gallium/drivers/softpipe/sp_prim_vbuf.c added on