ir3: Use isam for bindless images
In the bindless case, we don't have to keep any shadow descriptors and can just reuse the IBO descriptor as a texture descriptor. Now that we're emitting the swizzle we can just flip this on. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15114>
This commit is contained in:
@@ -2039,15 +2039,8 @@ emit_intrinsic(struct ir3_context *ctx, nir_intrinsic_instr *intr)
|
||||
emit_intrinsic_store_scratch(ctx, intr);
|
||||
break;
|
||||
case nir_intrinsic_image_load:
|
||||
emit_intrinsic_load_image(ctx, intr, dst);
|
||||
break;
|
||||
case nir_intrinsic_bindless_image_load:
|
||||
/* Bindless uses the IBO state, which doesn't have swizzle filled out,
|
||||
* so using isam doesn't work.
|
||||
*
|
||||
* TODO: can we use isam if we fill out more fields?
|
||||
*/
|
||||
ctx->funcs->emit_intrinsic_load_image(ctx, intr, dst);
|
||||
emit_intrinsic_load_image(ctx, intr, dst);
|
||||
break;
|
||||
case nir_intrinsic_image_store:
|
||||
case nir_intrinsic_bindless_image_store:
|
||||
|
||||
Reference in New Issue
Block a user