For bug #2580: sparseTextureGatherOffsetsARB should only take constant offsets.
This commit is contained in:
parent
2c7c84c8ac
commit
18cfc3f106
7 changed files with 2440 additions and 2300 deletions
|
|
@ -2,7 +2,7 @@ spv.sparseTexture.frag
|
|||
Validation failed
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 8000a
|
||||
// Id's are bound by 438
|
||||
// Id's are bound by 442
|
||||
|
||||
Capability Shader
|
||||
Capability ImageGatherExtended
|
||||
|
|
@ -12,7 +12,7 @@ Validation failed
|
|||
Capability SampledCubeArray
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 33 48 89 365 393 405 423
|
||||
EntryPoint Fragment 4 "main" 33 48 89 397 409 427
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Source GLSL 450
|
||||
SourceExtension "GL_ARB_sparse_texture2"
|
||||
|
|
@ -40,13 +40,12 @@ Validation failed
|
|||
Name 228 "is2DArray"
|
||||
Name 261 "sCubeShadow"
|
||||
Name 294 "s2DRectShadow"
|
||||
Name 365 "offsets"
|
||||
Name 390 "i2D"
|
||||
Name 393 "ic2"
|
||||
Name 402 "ii3D"
|
||||
Name 405 "ic3"
|
||||
Name 414 "i2DMS"
|
||||
Name 423 "outColor"
|
||||
Name 394 "i2D"
|
||||
Name 397 "ic2"
|
||||
Name 406 "ii3D"
|
||||
Name 409 "ic3"
|
||||
Name 418 "i2DMS"
|
||||
Name 427 "outColor"
|
||||
Decorate 29(s2D) DescriptorSet 0
|
||||
Decorate 29(s2D) Binding 0
|
||||
Decorate 33(c2) Location 0
|
||||
|
|
@ -74,19 +73,17 @@ Validation failed
|
|||
Decorate 261(sCubeShadow) Binding 3
|
||||
Decorate 294(s2DRectShadow) DescriptorSet 0
|
||||
Decorate 294(s2DRectShadow) Binding 5
|
||||
Decorate 365(offsets) Flat
|
||||
Decorate 365(offsets) Location 5
|
||||
Decorate 390(i2D) DescriptorSet 0
|
||||
Decorate 390(i2D) Binding 12
|
||||
Decorate 393(ic2) Flat
|
||||
Decorate 393(ic2) Location 3
|
||||
Decorate 402(ii3D) DescriptorSet 0
|
||||
Decorate 402(ii3D) Binding 13
|
||||
Decorate 405(ic3) Flat
|
||||
Decorate 405(ic3) Location 4
|
||||
Decorate 414(i2DMS) DescriptorSet 0
|
||||
Decorate 414(i2DMS) Binding 14
|
||||
Decorate 423(outColor) Location 0
|
||||
Decorate 394(i2D) DescriptorSet 0
|
||||
Decorate 394(i2D) Binding 12
|
||||
Decorate 397(ic2) Flat
|
||||
Decorate 397(ic2) Location 3
|
||||
Decorate 406(ii3D) DescriptorSet 0
|
||||
Decorate 406(ii3D) Binding 13
|
||||
Decorate 409(ic3) Flat
|
||||
Decorate 409(ic3) Location 4
|
||||
Decorate 418(i2DMS) DescriptorSet 0
|
||||
Decorate 418(i2DMS) Binding 14
|
||||
Decorate 427(outColor) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
|
|
@ -189,31 +186,38 @@ Validation failed
|
|||
340: 143(ivec2) ConstantComposite 192 192
|
||||
362: 20(int) Constant 4
|
||||
363: TypeArray 143(ivec2) 362
|
||||
364: TypePointer Input 363
|
||||
365(offsets): 364(ptr) Variable Input
|
||||
388: TypeImage 10(float) 2D nonsampled format:Rgba32f
|
||||
389: TypePointer UniformConstant 388
|
||||
390(i2D): 389(ptr) Variable UniformConstant
|
||||
392: TypePointer Input 143(ivec2)
|
||||
393(ic2): 392(ptr) Variable Input
|
||||
400: TypeImage 6(int) 3D nonsampled format:Rgba32i
|
||||
401: TypePointer UniformConstant 400
|
||||
402(ii3D): 401(ptr) Variable UniformConstant
|
||||
404: TypePointer Input 129(ivec3)
|
||||
405(ic3): 404(ptr) Variable Input
|
||||
412: TypeImage 10(float) 2D multi-sampled nonsampled format:Rgba32f
|
||||
413: TypePointer UniformConstant 412
|
||||
414(i2DMS): 413(ptr) Variable UniformConstant
|
||||
422: TypePointer Output 11(fvec4)
|
||||
423(outColor): 422(ptr) Variable Output
|
||||
425: TypeBool
|
||||
364: 6(int) Constant 1
|
||||
365: 143(ivec2) ConstantComposite 364 130
|
||||
366: 143(ivec2) ConstantComposite 144 192
|
||||
367: 6(int) Constant 15
|
||||
368: 6(int) Constant 16
|
||||
369: 143(ivec2) ConstantComposite 367 368
|
||||
370: 6(int) Constant 4294967294
|
||||
371: 143(ivec2) ConstantComposite 370 9
|
||||
372: 363 ConstantComposite 365 366 369 371
|
||||
392: TypeImage 10(float) 2D nonsampled format:Rgba32f
|
||||
393: TypePointer UniformConstant 392
|
||||
394(i2D): 393(ptr) Variable UniformConstant
|
||||
396: TypePointer Input 143(ivec2)
|
||||
397(ic2): 396(ptr) Variable Input
|
||||
404: TypeImage 6(int) 3D nonsampled format:Rgba32i
|
||||
405: TypePointer UniformConstant 404
|
||||
406(ii3D): 405(ptr) Variable UniformConstant
|
||||
408: TypePointer Input 129(ivec3)
|
||||
409(ic3): 408(ptr) Variable Input
|
||||
416: TypeImage 10(float) 2D multi-sampled nonsampled format:Rgba32f
|
||||
417: TypePointer UniformConstant 416
|
||||
418(i2DMS): 417(ptr) Variable UniformConstant
|
||||
426: TypePointer Output 11(fvec4)
|
||||
427(outColor): 426(ptr) Variable Output
|
||||
429: TypeBool
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(resident): 7(ptr) Variable Function
|
||||
13(texel): 12(ptr) Variable Function
|
||||
18(itexel): 17(ptr) Variable Function
|
||||
23(utexel): 22(ptr) Variable Function
|
||||
427: 12(ptr) Variable Function
|
||||
431: 12(ptr) Variable Function
|
||||
Store 8(resident) 9
|
||||
Store 13(texel) 15
|
||||
Store 18(itexel) 19
|
||||
|
|
@ -534,79 +538,76 @@ Validation failed
|
|||
Store 8(resident) 359
|
||||
360: 27 Load 29(s2D)
|
||||
361: 31(fvec2) Load 33(c2)
|
||||
366: 363 Load 365(offsets)
|
||||
367: 35(ResType) ImageSparseGather 360 361 9 ConstOffsets 366
|
||||
368: 11(fvec4) CompositeExtract 367 1
|
||||
Store 13(texel) 368
|
||||
369: 6(int) CompositeExtract 367 0
|
||||
370: 6(int) Load 8(resident)
|
||||
371: 6(int) BitwiseOr 370 369
|
||||
Store 8(resident) 371
|
||||
372: 226 Load 228(is2DArray)
|
||||
373: 46(fvec3) Load 48(c3)
|
||||
374: 363 Load 365(offsets)
|
||||
375: 62(ResType) ImageSparseGather 372 373 130 ConstOffsets 374
|
||||
376: 16(ivec4) CompositeExtract 375 1
|
||||
Store 18(itexel) 376
|
||||
377: 6(int) CompositeExtract 375 0
|
||||
378: 6(int) Load 8(resident)
|
||||
379: 6(int) BitwiseOr 378 377
|
||||
Store 8(resident) 379
|
||||
380: 292 Load 294(s2DRectShadow)
|
||||
381: 31(fvec2) Load 33(c2)
|
||||
382: 363 Load 365(offsets)
|
||||
383: 35(ResType) ImageSparseDrefGather 380 381 50 ConstOffsets 382
|
||||
384: 11(fvec4) CompositeExtract 383 1
|
||||
Store 13(texel) 384
|
||||
385: 6(int) CompositeExtract 383 0
|
||||
386: 6(int) Load 8(resident)
|
||||
387: 6(int) BitwiseOr 386 385
|
||||
Store 8(resident) 387
|
||||
391: 388 Load 390(i2D)
|
||||
394: 143(ivec2) Load 393(ic2)
|
||||
395: 35(ResType) ImageSparseRead 391 394
|
||||
396: 11(fvec4) CompositeExtract 395 1
|
||||
Store 13(texel) 396
|
||||
397: 6(int) CompositeExtract 395 0
|
||||
398: 6(int) Load 8(resident)
|
||||
399: 6(int) BitwiseOr 398 397
|
||||
Store 8(resident) 399
|
||||
403: 400 Load 402(ii3D)
|
||||
406: 129(ivec3) Load 405(ic3)
|
||||
407: 62(ResType) ImageSparseRead 403 406
|
||||
408: 16(ivec4) CompositeExtract 407 1
|
||||
Store 18(itexel) 408
|
||||
409: 6(int) CompositeExtract 407 0
|
||||
410: 6(int) Load 8(resident)
|
||||
411: 6(int) BitwiseOr 410 409
|
||||
Store 8(resident) 411
|
||||
415: 412 Load 414(i2DMS)
|
||||
416: 143(ivec2) Load 393(ic2)
|
||||
417: 35(ResType) ImageSparseRead 415 416 Sample 144
|
||||
418: 11(fvec4) CompositeExtract 417 1
|
||||
Store 13(texel) 418
|
||||
419: 6(int) CompositeExtract 417 0
|
||||
420: 6(int) Load 8(resident)
|
||||
421: 6(int) BitwiseOr 420 419
|
||||
Store 8(resident) 421
|
||||
373: 35(ResType) ImageSparseGather 360 361 9 ConstOffsets 372
|
||||
374: 11(fvec4) CompositeExtract 373 1
|
||||
Store 13(texel) 374
|
||||
375: 6(int) CompositeExtract 373 0
|
||||
376: 6(int) Load 8(resident)
|
||||
377: 6(int) BitwiseOr 376 375
|
||||
Store 8(resident) 377
|
||||
378: 226 Load 228(is2DArray)
|
||||
379: 46(fvec3) Load 48(c3)
|
||||
380: 62(ResType) ImageSparseGather 378 379 130 ConstOffsets 372
|
||||
381: 16(ivec4) CompositeExtract 380 1
|
||||
Store 18(itexel) 381
|
||||
382: 6(int) CompositeExtract 380 0
|
||||
383: 6(int) Load 8(resident)
|
||||
384: 6(int) BitwiseOr 383 382
|
||||
Store 8(resident) 384
|
||||
385: 292 Load 294(s2DRectShadow)
|
||||
386: 31(fvec2) Load 33(c2)
|
||||
387: 35(ResType) ImageSparseDrefGather 385 386 50 ConstOffsets 372
|
||||
388: 11(fvec4) CompositeExtract 387 1
|
||||
Store 13(texel) 388
|
||||
389: 6(int) CompositeExtract 387 0
|
||||
390: 6(int) Load 8(resident)
|
||||
391: 6(int) BitwiseOr 390 389
|
||||
Store 8(resident) 391
|
||||
395: 392 Load 394(i2D)
|
||||
398: 143(ivec2) Load 397(ic2)
|
||||
399: 35(ResType) ImageSparseRead 395 398
|
||||
400: 11(fvec4) CompositeExtract 399 1
|
||||
Store 13(texel) 400
|
||||
401: 6(int) CompositeExtract 399 0
|
||||
402: 6(int) Load 8(resident)
|
||||
403: 6(int) BitwiseOr 402 401
|
||||
Store 8(resident) 403
|
||||
407: 404 Load 406(ii3D)
|
||||
410: 129(ivec3) Load 409(ic3)
|
||||
411: 62(ResType) ImageSparseRead 407 410
|
||||
412: 16(ivec4) CompositeExtract 411 1
|
||||
Store 18(itexel) 412
|
||||
413: 6(int) CompositeExtract 411 0
|
||||
414: 6(int) Load 8(resident)
|
||||
415: 6(int) BitwiseOr 414 413
|
||||
Store 8(resident) 415
|
||||
419: 416 Load 418(i2DMS)
|
||||
420: 143(ivec2) Load 397(ic2)
|
||||
421: 35(ResType) ImageSparseRead 419 420 Sample 144
|
||||
422: 11(fvec4) CompositeExtract 421 1
|
||||
Store 13(texel) 422
|
||||
423: 6(int) CompositeExtract 421 0
|
||||
424: 6(int) Load 8(resident)
|
||||
426: 425(bool) ImageSparseTexelsResident 424
|
||||
SelectionMerge 429 None
|
||||
BranchConditional 426 428 431
|
||||
428: Label
|
||||
430: 11(fvec4) Load 13(texel)
|
||||
Store 427 430
|
||||
Branch 429
|
||||
431: Label
|
||||
432: 16(ivec4) Load 18(itexel)
|
||||
433: 11(fvec4) ConvertSToF 432
|
||||
434: 21(ivec4) Load 23(utexel)
|
||||
435: 11(fvec4) ConvertUToF 434
|
||||
436: 11(fvec4) FAdd 433 435
|
||||
Store 427 436
|
||||
Branch 429
|
||||
429: Label
|
||||
437: 11(fvec4) Load 427
|
||||
Store 423(outColor) 437
|
||||
425: 6(int) BitwiseOr 424 423
|
||||
Store 8(resident) 425
|
||||
428: 6(int) Load 8(resident)
|
||||
430: 429(bool) ImageSparseTexelsResident 428
|
||||
SelectionMerge 433 None
|
||||
BranchConditional 430 432 435
|
||||
432: Label
|
||||
434: 11(fvec4) Load 13(texel)
|
||||
Store 431 434
|
||||
Branch 433
|
||||
435: Label
|
||||
436: 16(ivec4) Load 18(itexel)
|
||||
437: 11(fvec4) ConvertSToF 436
|
||||
438: 21(ivec4) Load 23(utexel)
|
||||
439: 11(fvec4) ConvertUToF 438
|
||||
440: 11(fvec4) FAdd 437 439
|
||||
Store 431 440
|
||||
Branch 433
|
||||
433: Label
|
||||
441: 11(fvec4) Load 431
|
||||
Store 427(outColor) 441
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue