diff options
author | Erik Faye-Lund <[email protected]> | 2019-12-20 15:56:08 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2020-01-03 15:28:27 +0100 |
commit | 8c18331afeca37271616a31b94359c6e3e8f907e (patch) | |
tree | 595db7d996491869e1c8d2df10db9842f3131a64 /src/gallium/drivers/zink/nir_to_spirv/spirv_builder.h | |
parent | 7b70502a5d9a2d209f51e5b50229110d094f4478 (diff) |
zink: implement txf
texelFetch is a requirement for OpenGL 3.0, so this gets us a step
closer to GL 3.0 support.
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/zink/nir_to_spirv/spirv_builder.h')
-rw-r--r-- | src/gallium/drivers/zink/nir_to_spirv/spirv_builder.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/nir_to_spirv/spirv_builder.h b/src/gallium/drivers/zink/nir_to_spirv/spirv_builder.h index 736eb211fc7..d7213d85f65 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/spirv_builder.h +++ b/src/gallium/drivers/zink/nir_to_spirv/spirv_builder.h @@ -218,6 +218,17 @@ spirv_builder_emit_image_sample(struct spirv_builder *b, SpvId dy); SpvId +spirv_builder_emit_image(struct spirv_builder *b, SpvId result_type, + SpvId sampled_image); + +SpvId +spirv_builder_emit_image_fetch(struct spirv_builder *b, + SpvId result_type, + SpvId image, + SpvId coordinate, + SpvId lod); + +SpvId spirv_builder_emit_ext_inst(struct spirv_builder *b, SpvId result_type, SpvId set, uint32_t instruction, const SpvId args[], size_t num_args); |