mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
svga: remove tgsi semantic in shader compiler key
Change shader image return type in shader compiler key to VGPU10_RESOURCE_RETURN_TYPE. Reviewed-by: Neha Bhende <bhenden@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33749>
This commit is contained in:
parent
dcbf5f08eb
commit
73f4980dba
3 changed files with 4 additions and 5 deletions
|
|
@ -489,8 +489,8 @@ svga_init_shader_key_common(const struct svga_context *svga,
|
|||
struct pipe_resource *resource = cur_image_view->desc.resource;
|
||||
|
||||
if (resource) {
|
||||
key->images[i].return_type =
|
||||
svga_get_texture_datatype(cur_image_view->desc.format);
|
||||
key->images[i].return_type =
|
||||
vgpu10_return_type(cur_image_view->desc.format);
|
||||
|
||||
key->images[i].is_array = resource->array_size > 1;
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
struct svga_context;
|
||||
|
||||
|
||||
struct svga_compile_key
|
||||
{
|
||||
/* vertex shader only */
|
||||
|
|
@ -141,7 +140,7 @@ struct svga_compile_key
|
|||
uint64_t raw_shaderbufs; /* bitmask of raw shader buffers */
|
||||
|
||||
struct {
|
||||
enum tgsi_return_type return_type;
|
||||
unsigned return_type;
|
||||
enum pipe_texture_target resource_target;
|
||||
unsigned is_array:1;
|
||||
unsigned is_single_layer:1;
|
||||
|
|
|
|||
|
|
@ -6369,7 +6369,7 @@ emit_image_declarations(struct svga_shader_emitter_v10 *emit)
|
|||
return_type.component0 =
|
||||
return_type.component1 =
|
||||
return_type.component2 =
|
||||
return_type.component3 = emit->key.images[unit].return_type + 1;
|
||||
return_type.component3 = emit->key.images[unit].return_type;
|
||||
|
||||
assert(emit->key.images[unit].uav_index != SVGA3D_INVALID_ID);
|
||||
begin_emit_instruction(emit);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue