tests/test-driver: Update the test driver.
Currently, the hlsl backend performs several compilations with different shader models for every command on the shader_test file, when an error happens we don't know at first glance to which shader model the tag ([F]
, [XF]
, [SK]
, or [XP]
) corresponds to. So patch 1/2 adds the shader model to the line number before the tags.
Patch 2/2 makes the output more compact when multiple tags appear in the same line + shader model, since we now are printing several errors for the same command. For instance, it is common to see:
shader_runner.c:1688: clip-cull-distance.shader_test:125: Todo: Failed to compile shader, hr 0x80004005.
shader_runner_gl.c:1152: clip-cull-distance.shader_test:125: Todo: Failed to compile shader program.
shader_runner.c:1129: clip-cull-distance.shader_test:125: Todo: Draw failed.