This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Dimension-aware image intrinsics
ClosedPublic

Authored by nhaehnle on Mar 27 2018, 8:30 AM.

Details

Summary

These new image intrinsics contain the texture type as part of
their name and have each component of the address/coordinate as
individual parameters.

This is a preparatory step for implementing the A16 feature, where
coordinates are passed as half-floats or -ints, but the Z compare
value and texel offsets are still full dwords, making it difficult
or impossible to distinguish between A16 on or off in the old-style
intrinsics.

Additionally, these intrinsics pass the 'texfailpolicy' and
'cachectrl' as i32 bit fields to reduce operand clutter and allow
for future extensibility.

Change-Id: I099f309e0a394082a5901ea196c3967afb867f04

Diff Detail

Repository
rL LLVM

Event Timeline

nhaehnle created this revision.Mar 27 2018, 8:30 AM
This revision is now accepted and ready to land.Mar 27 2018, 3:42 PM
This revision was automatically updated to reflect the committed changes.