mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
[spirv-writer] Hash names
This Cl hashes the OpName, OpEntryPoint and OpMemberName strings so we are no longer passing user provided strings through into the resulting SPIR-V binary. Bug: tint:273 Change-Id: I0ca2c65d0cd2800c54d867ab698c7751c341778c Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/32061 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
0573714bfd
commit
84f827506a
@@ -30,6 +30,7 @@
|
||||
#include "src/ast/type/struct_type.h"
|
||||
#include "src/ast/type/type.h"
|
||||
#include "src/ast/uint_literal.h"
|
||||
#include "src/namer.h"
|
||||
|
||||
namespace tint {
|
||||
namespace inspector {
|
||||
@@ -46,8 +47,9 @@ std::vector<EntryPoint> Inspector::GetEntryPoints() {
|
||||
continue;
|
||||
}
|
||||
|
||||
Namer namer;
|
||||
EntryPoint entry_point;
|
||||
entry_point.name = func->name();
|
||||
entry_point.name = namer.NameFor(func->name());
|
||||
entry_point.stage = func->pipeline_stage();
|
||||
std::tie(entry_point.workgroup_size_x, entry_point.workgroup_size_y,
|
||||
entry_point.workgroup_size_z) = func->workgroup_size();
|
||||
|
||||
Reference in New Issue
Block a user