[Piglit] [PATCH 2/3] Use alloca instead of variable length arrays

Jan Vesely jan.vesely at rutgers.edu
Fri Dec 12 16:13:50 PST 2014


On Fri, 2014-12-12 at 14:49 -0800, Matt Turner wrote:
> On Fri, Dec 12, 2014 at 2:13 PM, Jan Vesely <jan.vesely at rutgers.edu> wrote:
> > On Fri, 2014-12-12 at 13:37 -0800, Matt Turner wrote:
> >> On Fri, Dec 12, 2014 at 1:23 PM, Jan Vesely <jan.vesely at rutgers.edu> wrote:
> >> > On Fri, 2014-12-12 at 12:58 -0800, Matt Turner wrote:
> >> >> I'm curious what the motivation for removing variably-sized arrays is,
> >> >> but if I accept that that's a good thing to do then the first patch
> >> >> makes sense, but I don't understand this one.
> >> >>
> >> >> How is a variably-size array different from using alloca()?
> >> >
> >> > variable size arrays are a c99 feature not supported by msvc (that's why
> >> > there is a warning). I don't know which parts actually do need to build
> >> > using msvc, but it seemed like a good idea to reduce warning output (and
> >> > improve consistency with code that needs to build using msvc).
> >> >
> >> > In the first patch I used alloca+free, because it looked nicer than
> >> > doing size arithmetic. The other cases allocate byte arrays, and the
> >> > only difference is that alloca (_alloca) is supported by msvc.
> >>
> >> Okay, then this patch doesn't do anything useful, since these tests
> >> shouldn't be built with MSVC. dma_bufs are a Linux thing.
> >
> > yes, I understand that, the point was not to build them using msvc.
> >
> > the patch usefulness is in enabling switch Wvla to error instead of
> > warning. other than that, it just reduces warning output.
> 
> Ah, I see. Okay.
> 
> For my own curiosity, does this actually change the compiled code?

Looks like the vla version uses fewer instructions but the code size is
the same (for -O3).
I'm using gcc 4.9.2 that comes with F21

I have attached release and debug versions of
ext_image_dma_buf_import-ownership_transfer piglit_display()
if you're interested

jan


-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
000000000040125c <piglit_display>:
  40125c:	55                   	push   %rbp
  40125d:	48 89 e5             	mov    %rsp,%rbp
  401260:	48 83 ec 40          	sub    $0x40,%rsp
  401264:	c7 45 fc 02 00 00 00 	movl   $0x2,-0x4(%rbp)
  40126b:	c7 45 f8 02 00 00 00 	movl   $0x2,-0x8(%rbp)
  401272:	c7 45 f4 04 00 00 00 	movl   $0x4,-0xc(%rbp)
  401279:	8b 45 fc             	mov    -0x4(%rbp),%eax
  40127c:	0f af 45 f8          	imul   -0x8(%rbp),%eax
  401280:	0f af 45 f4          	imul   -0xc(%rbp),%eax
  401284:	89 c0                	mov    %eax,%eax
  401286:	48 8d 50 0f          	lea    0xf(%rax),%rdx
  40128a:	b8 10 00 00 00       	mov    $0x10,%eax
  40128f:	48 83 e8 01          	sub    $0x1,%rax
  401293:	48 01 d0             	add    %rdx,%rax
  401296:	b9 10 00 00 00       	mov    $0x10,%ecx
  40129b:	ba 00 00 00 00       	mov    $0x0,%edx
  4012a0:	48 f7 f1             	div    %rcx
  4012a3:	48 6b c0 10          	imul   $0x10,%rax,%rax
  4012a7:	48 29 c4             	sub    %rax,%rsp
  4012aa:	48 89 e0             	mov    %rsp,%rax
  4012ad:	48 83 c0 0f          	add    $0xf,%rax
  4012b1:	48 c1 e8 04          	shr    $0x4,%rax
  4012b5:	48 c1 e0 04          	shl    $0x4,%rax
  4012b9:	48 89 45 e8          	mov    %rax,-0x18(%rbp)
  4012bd:	8b 45 fc             	mov    -0x4(%rbp),%eax
  4012c0:	0f af 45 f4          	imul   -0xc(%rbp),%eax
  4012c4:	41 89 c0             	mov    %eax,%r8d
  4012c7:	48 83 ec 08          	sub    $0x8,%rsp
  4012cb:	4c 8d 4d d8          	lea    -0x28(%rbp),%r9
  4012cf:	48 8b 4d e8          	mov    -0x18(%rbp),%rcx
  4012d3:	8b 55 f4             	mov    -0xc(%rbp),%edx
  4012d6:	8b 75 f8             	mov    -0x8(%rbp),%esi
  4012d9:	8b 45 fc             	mov    -0x4(%rbp),%eax
  4012dc:	48 8d 7d d0          	lea    -0x30(%rbp),%rdi
  4012e0:	57                   	push   %rdi
  4012e1:	48 8d 7d d4          	lea    -0x2c(%rbp),%rdi
  4012e5:	57                   	push   %rdi
  4012e6:	48 8d 7d cc          	lea    -0x34(%rbp),%rdi
  4012ea:	57                   	push   %rdi
  4012eb:	89 c7                	mov    %eax,%edi
  4012ed:	e8 5e fb ff ff       	callq  400e50 <piglit_create_dma_buf at plt>
  4012f2:	48 83 c4 20          	add    $0x20,%rsp
  4012f6:	89 45 e4             	mov    %eax,-0x1c(%rbp)
  4012f9:	83 7d e4 00          	cmpl   $0x0,-0x1c(%rbp)
  4012fd:	74 05                	je     401304 <piglit_display+0xa8>
  4012ff:	8b 45 e4             	mov    -0x1c(%rbp),%eax
  401302:	eb 21                	jmp    401325 <piglit_display+0xc9>
  401304:	44 8b 45 d0          	mov    -0x30(%rbp),%r8d
  401308:	8b 7d d4             	mov    -0x2c(%rbp),%edi
  40130b:	8b 4d cc             	mov    -0x34(%rbp),%ecx
  40130e:	48 8b 55 d8          	mov    -0x28(%rbp),%rdx
  401312:	8b 75 f8             	mov    -0x8(%rbp),%esi
  401315:	8b 45 fc             	mov    -0x4(%rbp),%eax
  401318:	45 89 c1             	mov    %r8d,%r9d
  40131b:	41 89 f8             	mov    %edi,%r8d
  40131e:	89 c7                	mov    %eax,%edi
  401320:	e8 7b fd ff ff       	callq  4010a0 <test_create_and_destroy>
  401325:	c9                   	leaveq 
  401326:	c3                   	retq   

-------------- next part --------------
00000000004010c0 <piglit_display>:
  4010c0:	55                   	push   %rbp
  4010c1:	41 b8 08 00 00 00    	mov    $0x8,%r8d
  4010c7:	ba 04 00 00 00       	mov    $0x4,%edx
  4010cc:	be 02 00 00 00       	mov    $0x2,%esi
  4010d1:	bf 02 00 00 00       	mov    $0x2,%edi
  4010d6:	48 89 e5             	mov    %rsp,%rbp
  4010d9:	41 56                	push   %r14
  4010db:	41 55                	push   %r13
  4010dd:	41 54                	push   %r12
  4010df:	53                   	push   %rbx
  4010e0:	48 8d 45 90          	lea    -0x70(%rbp),%rax
  4010e4:	4c 8d 4d 98          	lea    -0x68(%rbp),%r9
  4010e8:	48 83 ec 60          	sub    $0x60,%rsp
  4010ec:	48 83 ec 20          	sub    $0x20,%rsp
  4010f0:	48 8d 4c 24 0f       	lea    0xf(%rsp),%rcx
  4010f5:	48 83 ec 08          	sub    $0x8,%rsp
  4010f9:	50                   	push   %rax
  4010fa:	48 8d 45 8c          	lea    -0x74(%rbp),%rax
  4010fe:	48 83 e1 f0          	and    $0xfffffffffffffff0,%rcx
  401102:	50                   	push   %rax
  401103:	48 8d 45 94          	lea    -0x6c(%rbp),%rax
  401107:	50                   	push   %rax
  401108:	e8 43 fd ff ff       	callq  400e50 <piglit_create_dma_buf at plt>
  40110d:	48 83 c4 20          	add    $0x20,%rsp
  401111:	85 c0                	test   %eax,%eax
  401113:	89 c3                	mov    %eax,%ebx
  401115:	74 19                	je     401130 <piglit_display+0x70>
  401117:	48 8d 65 e0          	lea    -0x20(%rbp),%rsp
  40111b:	89 d8                	mov    %ebx,%eax
  40111d:	5b                   	pop    %rbx
  40111e:	41 5c                	pop    %r12
  401120:	41 5d                	pop    %r13
  401122:	41 5e                	pop    %r14
  401124:	5d                   	pop    %rbp
  401125:	c3                   	retq   
  401126:	66 2e 0f 1f 84 00 00 	nopw   %cs:0x0(%rax,%rax,1)
  40112d:	00 00 00 
  401130:	8b 45 90             	mov    -0x70(%rbp),%eax
  401133:	44 8b 75 94          	mov    -0x6c(%rbp),%r14d
  401137:	48 8b 5d 98          	mov    -0x68(%rbp),%rbx
  40113b:	4c 8b 25 96 0f 20 00 	mov    0x200f96(%rip),%r12        # 6020d8 <image_common_dispatch_eglCreateImageKHR>
  401142:	c7 45 a0 57 30 00 00 	movl   $0x3057,-0x60(%rbp)
  401149:	c7 45 a4 02 00 00 00 	movl   $0x2,-0x5c(%rbp)
  401150:	89 45 c4             	mov    %eax,-0x3c(%rbp)
  401153:	8b 45 8c             	mov    -0x74(%rbp),%eax
  401156:	c7 45 a8 56 30 00 00 	movl   $0x3056,-0x58(%rbp)
  40115d:	c7 45 ac 02 00 00 00 	movl   $0x2,-0x54(%rbp)
  401164:	c7 45 b0 71 32 00 00 	movl   $0x3271,-0x50(%rbp)
  40116b:	c7 45 b4 41 52 32 34 	movl   $0x34325241,-0x4c(%rbp)
  401172:	c7 45 b8 72 32 00 00 	movl   $0x3272,-0x48(%rbp)
  401179:	44 89 75 bc          	mov    %r14d,-0x44(%rbp)
  40117d:	c7 45 c0 73 32 00 00 	movl   $0x3273,-0x40(%rbp)
  401184:	c7 45 c8 74 32 00 00 	movl   $0x3274,-0x38(%rbp)
  40118b:	89 45 cc             	mov    %eax,-0x34(%rbp)
  40118e:	c7 45 d0 38 30 00 00 	movl   $0x3038,-0x30(%rbp)
  401195:	e8 46 fc ff ff       	callq  400de0 <eglGetCurrentDisplay at plt>
  40119a:	31 c9                	xor    %ecx,%ecx
  40119c:	31 f6                	xor    %esi,%esi
  40119e:	4c 8d 45 a0          	lea    -0x60(%rbp),%r8
  4011a2:	ba 70 32 00 00       	mov    $0x3270,%edx
  4011a7:	48 89 c7             	mov    %rax,%rdi
  4011aa:	41 ff d4             	callq  *%r12
  4011ad:	48 89 df             	mov    %rbx,%rdi
  4011b0:	49 89 c5             	mov    %rax,%r13
  4011b3:	e8 78 fc ff ff       	callq  400e30 <piglit_destroy_dma_buf at plt>
  4011b8:	e8 03 fd ff ff       	callq  400ec0 <eglGetError at plt>
  4011bd:	4d 85 ed             	test   %r13,%r13
  4011c0:	41 89 c4             	mov    %eax,%r12d
  4011c3:	0f 94 c0             	sete   %al
  4011c6:	41 81 fc 09 30 00 00 	cmp    $0x3009,%r12d
  4011cd:	75 0d                	jne    4011dc <piglit_display+0x11c>
  4011cf:	84 c0                	test   %al,%al
  4011d1:	bb 02 00 00 00       	mov    $0x2,%ebx
  4011d6:	0f 85 3b ff ff ff    	jne    401117 <piglit_display+0x57>
  4011dc:	41 81 fc 00 30 00 00 	cmp    $0x3000,%r12d
  4011e3:	75 5b                	jne    401240 <piglit_display+0x180>
  4011e5:	84 c0                	test   %al,%al
  4011e7:	0f 85 a3 00 00 00    	jne    401290 <piglit_display+0x1d0>
  4011ed:	48 8b 1d dc 0e 20 00 	mov    0x200edc(%rip),%rbx        # 6020d0 <image_common_dispatch_eglDestroyImageKHR>
  4011f4:	e8 e7 fb ff ff       	callq  400de0 <eglGetCurrentDisplay at plt>
  4011f9:	4c 89 ee             	mov    %r13,%rsi
  4011fc:	48 89 c7             	mov    %rax,%rdi
  4011ff:	ff d3                	callq  *%rbx
  401201:	bf 00 30 00 00       	mov    $0x3000,%edi
  401206:	bb 01 00 00 00       	mov    $0x1,%ebx
  40120b:	e8 c0 fb ff ff       	callq  400dd0 <piglit_check_egl_error at plt>
  401210:	84 c0                	test   %al,%al
  401212:	0f 84 ff fe ff ff    	je     401117 <piglit_display+0x57>
  401218:	e8 c3 fb ff ff       	callq  400de0 <eglGetCurrentDisplay at plt>
  40121d:	48 89 c7             	mov    %rax,%rdi
  401220:	e8 ab fc ff ff       	callq  400ed0 <eglTerminate at plt>
  401225:	85 c0                	test   %eax,%eax
  401227:	74 47                	je     401270 <piglit_display+0x1b0>
  401229:	44 89 f7             	mov    %r14d,%edi
  40122c:	31 db                	xor    %ebx,%ebx
  40122e:	e8 dd fc ff ff       	callq  400f10 <close at plt>
  401233:	85 c0                	test   %eax,%eax
  401235:	0f 95 c3             	setne  %bl
  401238:	e9 da fe ff ff       	jmpq   401117 <piglit_display+0x57>
  40123d:	0f 1f 00             	nopl   (%rax)
  401240:	44 89 e7             	mov    %r12d,%edi
  401243:	bb 01 00 00 00       	mov    $0x1,%ebx
  401248:	e8 63 fc ff ff       	callq  400eb0 <piglit_get_egl_error_name at plt>
  40124d:	48 8b 3d 8c 0e 20 00 	mov    0x200e8c(%rip),%rdi        # 6020e0 <_edata>
  401254:	48 89 c2             	mov    %rax,%rdx
  401257:	44 89 e1             	mov    %r12d,%ecx
  40125a:	be 68 14 40 00       	mov    $0x401468,%esi
  40125f:	31 c0                	xor    %eax,%eax
  401261:	e8 3a fc ff ff       	callq  400ea0 <fprintf at plt>
  401266:	e9 ac fe ff ff       	jmpq   401117 <piglit_display+0x57>
  40126b:	0f 1f 44 00 00       	nopl   0x0(%rax,%rax,1)
  401270:	48 8b 0d 69 0e 20 00 	mov    0x200e69(%rip),%rcx        # 6020e0 <_edata>
  401277:	ba 16 00 00 00       	mov    $0x16,%edx
  40127c:	be 01 00 00 00       	mov    $0x1,%esi
  401281:	bf 4d 14 40 00       	mov    $0x40144d,%edi
  401286:	e8 75 fc ff ff       	callq  400f00 <fwrite at plt>
  40128b:	e9 87 fe ff ff       	jmpq   401117 <piglit_display+0x57>
  401290:	48 8b 0d 49 0e 20 00 	mov    0x200e49(%rip),%rcx        # 6020e0 <_edata>
  401297:	ba 29 00 00 00       	mov    $0x29,%edx
  40129c:	be 01 00 00 00       	mov    $0x1,%esi
  4012a1:	bf 90 14 40 00       	mov    $0x401490,%edi
  4012a6:	bb 01 00 00 00       	mov    $0x1,%ebx
  4012ab:	e8 50 fc ff ff       	callq  400f00 <fwrite at plt>
  4012b0:	e9 62 fe ff ff       	jmpq   401117 <piglit_display+0x57>
  4012b5:	66 2e 0f 1f 84 00 00 	nopw   %cs:0x0(%rax,%rax,1)
  4012bc:	00 00 00 
  4012bf:	90                   	nop

-------------- next part --------------
000000000040125c <piglit_display>:
  40125c:	55                   	push   %rbp
  40125d:	48 89 e5             	mov    %rsp,%rbp
  401260:	53                   	push   %rbx
  401261:	48 83 ec 48          	sub    $0x48,%rsp
  401265:	48 89 e0             	mov    %rsp,%rax
  401268:	48 89 c3             	mov    %rax,%rbx
  40126b:	c7 45 ec 02 00 00 00 	movl   $0x2,-0x14(%rbp)
  401272:	c7 45 e8 02 00 00 00 	movl   $0x2,-0x18(%rbp)
  401279:	c7 45 e4 04 00 00 00 	movl   $0x4,-0x1c(%rbp)
  401280:	8b 45 ec             	mov    -0x14(%rbp),%eax
  401283:	0f af 45 e8          	imul   -0x18(%rbp),%eax
  401287:	0f af 45 e4          	imul   -0x1c(%rbp),%eax
  40128b:	89 c0                	mov    %eax,%eax
  40128d:	48 83 e8 01          	sub    $0x1,%rax
  401291:	48 89 45 d8          	mov    %rax,-0x28(%rbp)
  401295:	8b 45 ec             	mov    -0x14(%rbp),%eax
  401298:	0f af 45 e8          	imul   -0x18(%rbp),%eax
  40129c:	0f af 45 e4          	imul   -0x1c(%rbp),%eax
  4012a0:	89 c0                	mov    %eax,%eax
  4012a2:	48 89 c6             	mov    %rax,%rsi
  4012a5:	bf 00 00 00 00       	mov    $0x0,%edi
  4012aa:	8b 45 ec             	mov    -0x14(%rbp),%eax
  4012ad:	0f af 45 e8          	imul   -0x18(%rbp),%eax
  4012b1:	0f af 45 e4          	imul   -0x1c(%rbp),%eax
  4012b5:	89 c0                	mov    %eax,%eax
  4012b7:	48 89 c2             	mov    %rax,%rdx
  4012ba:	b9 00 00 00 00       	mov    $0x0,%ecx
  4012bf:	8b 45 ec             	mov    -0x14(%rbp),%eax
  4012c2:	0f af 45 e8          	imul   -0x18(%rbp),%eax
  4012c6:	0f af 45 e4          	imul   -0x1c(%rbp),%eax
  4012ca:	89 c2                	mov    %eax,%edx
  4012cc:	b8 10 00 00 00       	mov    $0x10,%eax
  4012d1:	48 83 e8 01          	sub    $0x1,%rax
  4012d5:	48 01 d0             	add    %rdx,%rax
  4012d8:	b9 10 00 00 00       	mov    $0x10,%ecx
  4012dd:	ba 00 00 00 00       	mov    $0x0,%edx
  4012e2:	48 f7 f1             	div    %rcx
  4012e5:	48 6b c0 10          	imul   $0x10,%rax,%rax
  4012e9:	48 29 c4             	sub    %rax,%rsp
  4012ec:	48 89 e0             	mov    %rsp,%rax
  4012ef:	48 83 c0 00          	add    $0x0,%rax
  4012f3:	48 89 45 d0          	mov    %rax,-0x30(%rbp)
  4012f7:	8b 45 ec             	mov    -0x14(%rbp),%eax
  4012fa:	0f af 45 e4          	imul   -0x1c(%rbp),%eax
  4012fe:	41 89 c0             	mov    %eax,%r8d
  401301:	48 8b 4d d0          	mov    -0x30(%rbp),%rcx
  401305:	48 83 ec 08          	sub    $0x8,%rsp
  401309:	4c 8d 4d c0          	lea    -0x40(%rbp),%r9
  40130d:	8b 55 e4             	mov    -0x1c(%rbp),%edx
  401310:	8b 75 e8             	mov    -0x18(%rbp),%esi
  401313:	8b 45 ec             	mov    -0x14(%rbp),%eax
  401316:	48 8d 7d b8          	lea    -0x48(%rbp),%rdi
  40131a:	57                   	push   %rdi
  40131b:	48 8d 7d bc          	lea    -0x44(%rbp),%rdi
  40131f:	57                   	push   %rdi
  401320:	48 8d 7d b4          	lea    -0x4c(%rbp),%rdi
  401324:	57                   	push   %rdi
  401325:	89 c7                	mov    %eax,%edi
  401327:	e8 24 fb ff ff       	callq  400e50 <piglit_create_dma_buf at plt>
  40132c:	48 83 c4 20          	add    $0x20,%rsp
  401330:	89 45 cc             	mov    %eax,-0x34(%rbp)
  401333:	83 7d cc 00          	cmpl   $0x0,-0x34(%rbp)
  401337:	74 05                	je     40133e <piglit_display+0xe2>
  401339:	8b 45 cc             	mov    -0x34(%rbp),%eax
  40133c:	eb 21                	jmp    40135f <piglit_display+0x103>
  40133e:	44 8b 45 b8          	mov    -0x48(%rbp),%r8d
  401342:	8b 7d bc             	mov    -0x44(%rbp),%edi
  401345:	8b 4d b4             	mov    -0x4c(%rbp),%ecx
  401348:	48 8b 55 c0          	mov    -0x40(%rbp),%rdx
  40134c:	8b 75 e8             	mov    -0x18(%rbp),%esi
  40134f:	8b 45 ec             	mov    -0x14(%rbp),%eax
  401352:	45 89 c1             	mov    %r8d,%r9d
  401355:	41 89 f8             	mov    %edi,%r8d
  401358:	89 c7                	mov    %eax,%edi
  40135a:	e8 41 fd ff ff       	callq  4010a0 <test_create_and_destroy>
  40135f:	48 89 dc             	mov    %rbx,%rsp
  401362:	48 8b 5d f8          	mov    -0x8(%rbp),%rbx
  401366:	c9                   	leaveq 
  401367:	c3                   	retq   
-------------- next part --------------
00000000004010c0 <piglit_display>:
  4010c0:	41 55                	push   %r13
  4010c2:	41 54                	push   %r12
  4010c4:	41 b8 08 00 00 00    	mov    $0x8,%r8d
  4010ca:	55                   	push   %rbp
  4010cb:	53                   	push   %rbx
  4010cc:	ba 04 00 00 00       	mov    $0x4,%edx
  4010d1:	be 02 00 00 00       	mov    $0x2,%esi
  4010d6:	bf 02 00 00 00       	mov    $0x2,%edi
  4010db:	48 83 c4 80          	add    $0xffffffffffffff80,%rsp
  4010df:	48 8d 44 24 18       	lea    0x18(%rsp),%rax
  4010e4:	50                   	push   %rax
  4010e5:	48 8d 44 24 1c       	lea    0x1c(%rsp),%rax
  4010ea:	50                   	push   %rax
  4010eb:	48 8d 44 24 2c       	lea    0x2c(%rsp),%rax
  4010f0:	50                   	push   %rax
  4010f1:	4c 8d 4c 24 38       	lea    0x38(%rsp),%r9
  4010f6:	48 8d 4c 24 40       	lea    0x40(%rsp),%rcx
  4010fb:	e8 50 fd ff ff       	callq  400e50 <piglit_create_dma_buf at plt>
  401100:	48 83 c4 20          	add    $0x20,%rsp
  401104:	85 c0                	test   %eax,%eax
  401106:	89 c3                	mov    %eax,%ebx
  401108:	74 16                	je     401120 <piglit_display+0x60>
  40110a:	48 83 c4 78          	add    $0x78,%rsp
  40110e:	89 d8                	mov    %ebx,%eax
  401110:	5b                   	pop    %rbx
  401111:	5d                   	pop    %rbp
  401112:	41 5c                	pop    %r12
  401114:	41 5d                	pop    %r13
  401116:	c3                   	retq   
  401117:	66 0f 1f 84 00 00 00 	nopw   0x0(%rax,%rax,1)
  40111e:	00 00 
  401120:	8b 44 24 10          	mov    0x10(%rsp),%eax
  401124:	44 8b 6c 24 14       	mov    0x14(%rsp),%r13d
  401129:	48 8b 5c 24 18       	mov    0x18(%rsp),%rbx
  40112e:	48 8b 2d a3 0f 20 00 	mov    0x200fa3(%rip),%rbp        # 6020d8 <image_common_dispatch_eglCreateImageKHR>
  401135:	c7 44 24 30 57 30 00 	movl   $0x3057,0x30(%rsp)
  40113c:	00 
  40113d:	c7 44 24 34 02 00 00 	movl   $0x2,0x34(%rsp)
  401144:	00 
  401145:	89 44 24 54          	mov    %eax,0x54(%rsp)
  401149:	8b 44 24 0c          	mov    0xc(%rsp),%eax
  40114d:	c7 44 24 38 56 30 00 	movl   $0x3056,0x38(%rsp)
  401154:	00 
  401155:	c7 44 24 3c 02 00 00 	movl   $0x2,0x3c(%rsp)
  40115c:	00 
  40115d:	c7 44 24 40 71 32 00 	movl   $0x3271,0x40(%rsp)
  401164:	00 
  401165:	c7 44 24 44 41 52 32 	movl   $0x34325241,0x44(%rsp)
  40116c:	34 
  40116d:	c7 44 24 48 72 32 00 	movl   $0x3272,0x48(%rsp)
  401174:	00 
  401175:	44 89 6c 24 4c       	mov    %r13d,0x4c(%rsp)
  40117a:	c7 44 24 50 73 32 00 	movl   $0x3273,0x50(%rsp)
  401181:	00 
  401182:	c7 44 24 58 74 32 00 	movl   $0x3274,0x58(%rsp)
  401189:	00 
  40118a:	89 44 24 5c          	mov    %eax,0x5c(%rsp)
  40118e:	c7 44 24 60 38 30 00 	movl   $0x3038,0x60(%rsp)
  401195:	00 
  401196:	e8 45 fc ff ff       	callq  400de0 <eglGetCurrentDisplay at plt>
  40119b:	31 c9                	xor    %ecx,%ecx
  40119d:	31 f6                	xor    %esi,%esi
  40119f:	4c 8d 44 24 30       	lea    0x30(%rsp),%r8
  4011a4:	ba 70 32 00 00       	mov    $0x3270,%edx
  4011a9:	48 89 c7             	mov    %rax,%rdi
  4011ac:	ff d5                	callq  *%rbp
  4011ae:	48 89 df             	mov    %rbx,%rdi
  4011b1:	49 89 c4             	mov    %rax,%r12
  4011b4:	e8 77 fc ff ff       	callq  400e30 <piglit_destroy_dma_buf at plt>
  4011b9:	e8 02 fd ff ff       	callq  400ec0 <eglGetError at plt>
  4011be:	4d 85 e4             	test   %r12,%r12
  4011c1:	89 c5                	mov    %eax,%ebp
  4011c3:	0f 94 c0             	sete   %al
  4011c6:	81 fd 09 30 00 00    	cmp    $0x3009,%ebp
  4011cc:	75 0d                	jne    4011db <piglit_display+0x11b>
  4011ce:	84 c0                	test   %al,%al
  4011d0:	bb 02 00 00 00       	mov    $0x2,%ebx
  4011d5:	0f 85 2f ff ff ff    	jne    40110a <piglit_display+0x4a>
  4011db:	81 fd 00 30 00 00    	cmp    $0x3000,%ebp
  4011e1:	75 5d                	jne    401240 <piglit_display+0x180>
  4011e3:	84 c0                	test   %al,%al
  4011e5:	0f 85 a5 00 00 00    	jne    401290 <piglit_display+0x1d0>
  4011eb:	48 8b 1d de 0e 20 00 	mov    0x200ede(%rip),%rbx        # 6020d0 <image_common_dispatch_eglDestroyImageKHR>
  4011f2:	e8 e9 fb ff ff       	callq  400de0 <eglGetCurrentDisplay at plt>
  4011f7:	4c 89 e6             	mov    %r12,%rsi
  4011fa:	48 89 c7             	mov    %rax,%rdi
  4011fd:	ff d3                	callq  *%rbx
  4011ff:	bf 00 30 00 00       	mov    $0x3000,%edi
  401204:	bb 01 00 00 00       	mov    $0x1,%ebx
  401209:	e8 c2 fb ff ff       	callq  400dd0 <piglit_check_egl_error at plt>
  40120e:	84 c0                	test   %al,%al
  401210:	0f 84 f4 fe ff ff    	je     40110a <piglit_display+0x4a>
  401216:	e8 c5 fb ff ff       	callq  400de0 <eglGetCurrentDisplay at plt>
  40121b:	48 89 c7             	mov    %rax,%rdi
  40121e:	e8 ad fc ff ff       	callq  400ed0 <eglTerminate at plt>
  401223:	85 c0                	test   %eax,%eax
  401225:	74 49                	je     401270 <piglit_display+0x1b0>
  401227:	44 89 ef             	mov    %r13d,%edi
  40122a:	31 db                	xor    %ebx,%ebx
  40122c:	e8 df fc ff ff       	callq  400f10 <close at plt>
  401231:	85 c0                	test   %eax,%eax
  401233:	0f 95 c3             	setne  %bl
  401236:	e9 cf fe ff ff       	jmpq   40110a <piglit_display+0x4a>
  40123b:	0f 1f 44 00 00       	nopl   0x0(%rax,%rax,1)
  401240:	89 ef                	mov    %ebp,%edi
  401242:	bb 01 00 00 00       	mov    $0x1,%ebx
  401247:	e8 64 fc ff ff       	callq  400eb0 <piglit_get_egl_error_name at plt>
  40124c:	48 8b 3d 8d 0e 20 00 	mov    0x200e8d(%rip),%rdi        # 6020e0 <_edata>
  401253:	48 89 c2             	mov    %rax,%rdx
  401256:	89 e9                	mov    %ebp,%ecx
  401258:	be 68 14 40 00       	mov    $0x401468,%esi
  40125d:	31 c0                	xor    %eax,%eax
  40125f:	e8 3c fc ff ff       	callq  400ea0 <fprintf at plt>
  401264:	e9 a1 fe ff ff       	jmpq   40110a <piglit_display+0x4a>
  401269:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)
  401270:	48 8b 0d 69 0e 20 00 	mov    0x200e69(%rip),%rcx        # 6020e0 <_edata>
  401277:	ba 16 00 00 00       	mov    $0x16,%edx
  40127c:	be 01 00 00 00       	mov    $0x1,%esi
  401281:	bf 4d 14 40 00       	mov    $0x40144d,%edi
  401286:	e8 75 fc ff ff       	callq  400f00 <fwrite at plt>
  40128b:	e9 7a fe ff ff       	jmpq   40110a <piglit_display+0x4a>
  401290:	48 8b 0d 49 0e 20 00 	mov    0x200e49(%rip),%rcx        # 6020e0 <_edata>
  401297:	ba 29 00 00 00       	mov    $0x29,%edx
  40129c:	be 01 00 00 00       	mov    $0x1,%esi
  4012a1:	bf 90 14 40 00       	mov    $0x401490,%edi
  4012a6:	bb 01 00 00 00       	mov    $0x1,%ebx
  4012ab:	e8 50 fc ff ff       	callq  400f00 <fwrite at plt>
  4012b0:	e9 55 fe ff ff       	jmpq   40110a <piglit_display+0x4a>
  4012b5:	66 2e 0f 1f 84 00 00 	nopw   %cs:0x0(%rax,%rax,1)
  4012bc:	00 00 00 
  4012bf:	90                   	nop

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20141212/00bdcceb/attachment-0001.sig>


More information about the Piglit mailing list