llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[AMDGPU][GFX1013] Disabled image_msaa_load

Open dpreobra opened this issue 4 years ago • 6 comments

I noticed that image_msaa_load is no longer supported on GFX1013. This is caused by changes in e8860bee283855b2e1ce7eefb085a86e9ae3262b.

An example of failed test:

image_msaa_load v255, v[1:4], s[8:15] dmask:0x0 dim:SQ_RSRC_IMG_2D_MSAA_ARRAY

Expected result:

0x39,0x00,0x00,0xf0,0x01,0xff,0x02,0x00

Actual output:

error: instruction not supported on this GPU

Due to the lack of information about this subtarget and poor test coverage I have no idea if this was intentional. Any comments about the issue are appreciated.

@perlfu @Sisyph @nhaehnle

dpreobra avatar Jun 06 '22 11:06 dpreobra

@llvm/issue-subscribers-backend-amdgpu

llvmbot avatar Jun 06 '22 11:06 llvmbot

I don't think it was intentional. Maybe we could just add a gfx1013 RUN line to some of the existing MC tests for gfx101[012]?

Also add @bcahoon, author of https://reviews.llvm.org/D103663.

jayfoad avatar Jun 06 '22 11:06 jayfoad

Maybe we could just add a gfx1013 RUN line to some of the existing MC tests for gfx101[012]

Sure, thanks. If nobody mind I'll enable the instruction and add tests.

dpreobra avatar Jun 06 '22 11:06 dpreobra

The image_msaa_load is valid for gfx1013.

bcahoon avatar Jun 06 '22 13:06 bcahoon

JFYI, dmask:0x0 is illeagl.

rampitec avatar Jun 07 '22 18:06 rampitec

Fixed by commit f8aba9995ad932582f1deb9f01353a98a3ff92e7.

dpreobra avatar Jun 14 '22 09:06 dpreobra