Collection of shaders for offline analysis

Forked from Mesa / shader-db

  • Eric Engestrom's avatar
    run: simplify filename handling · cf466df6
    Eric Engestrom authored
    Compiler wasn't happy about strncpy() depending on the source's length and not
    the target's, but this whole thing can be simplified by simply using asprintf()
    (which is already used in this file, so no #include necessary).
    
    run.c: In function ‘main._omp_fn.0’:
    run.c:964:21: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
                         strncpy(out_filename, current_shader_name,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                 strlen(current_shader_name) + 1);
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
    Reviewed-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
    cf466df6
Name
Last commit
Last update
licenses Loading commit data...
shaders Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
README Loading commit data...
check_dependencies.pl Loading commit data...
fd-report.py Loading commit data...
intel_run Loading commit data...
intel_stub.c Loading commit data...
nv-report.py Loading commit data...
report.py Loading commit data...
run.c Loading commit data...
run.py Loading commit data...
si-report.py Loading commit data...