Switch to DuckDuckGo Search
   July 8, 2019  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >

Toggle Join/Part | bottom
[00:47:28] *** LunarJetman <LunarJetman!LunarJetma@94.14.216.120> has quit IRC (Ping timeout: 246 seconds)
[01:10:50] *** Karyon <Karyon!~Karyon@unaffiliated/karyon> has joined ##vulkan
[01:11:07] *** bpmedley <bpmedley!~bpm@2600:1700:eb20:6050:ed46:883:4213:1d60> has quit IRC (Ping timeout: 276 seconds)
[02:22:24] *** saint_go <saint_go!~textual@135-23-210-183.cpe.pppoe.ca> has joined ##vulkan
[02:32:51] *** mazocomp <mazocomp!~AdminUser@46.118.254.92> has joined ##vulkan
[02:47:48] *** ratchetfreak <ratchetfreak!~ratchetfr@ptr-82s3g7muz0p3o58sc34.18120a2.ip6.access.telenet.be> has quit IRC (Ping timeout: 252 seconds)
[03:56:35] *** saint_go <saint_go!~textual@135-23-210-183.cpe.pppoe.ca> has quit IRC (Quit: Textual IRC Client: www.textualapp.com)
[04:00:42] *** mandeep_ <mandeep_!mandeep@gateway/vpn/privateinternetaccess/mandeepb> has joined ##vulkan
[04:01:30] *** bpmedley <bpmedley!~bpm@2600:1700:eb20:6050:31ef:32f1:c702:6aa0> has joined ##vulkan
[04:02:09] *** mandeep <mandeep!mandeep@gateway/vpn/privateinternetaccess/mandeepb> has quit IRC (Ping timeout: 248 seconds)
[04:15:24] *** rotaerk <rotaerk!~rotaerk@ender.afternet.org> has quit IRC (Remote host closed the connection)
[04:20:33] *** rotaerk <rotaerk!rotaerk@2600:3c02::f03c:91ff:fe70:4a45> has joined ##vulkan
[04:29:14] *** slime <slime!~slime73@24.215.81.93> has quit IRC (Quit: This computer has gone to sleep)
[05:09:13] *** mandeep_ <mandeep_!mandeep@gateway/vpn/privateinternetaccess/mandeepb> has quit IRC (Quit: Leaving)
[05:15:54] *** rotaerk <rotaerk!rotaerk@2600:3c02::f03c:91ff:fe70:4a45> has quit IRC (Remote host closed the connection)
[05:20:36] *** rotaerk <rotaerk!rotaerk@2600:3c02::f03c:91ff:fe70:4a45> has joined ##vulkan
[05:54:40] *** fling <fling!~fling@fsf/member/fling> has quit IRC (Ping timeout: 258 seconds)
[05:55:09] *** fling <fling!~fling@fsf/member/fling> has joined ##vulkan
[06:05:13] *** Ristovski <Ristovski!~364e20076@unaffiliated/ristovski> has quit IRC (Ping timeout: 244 seconds)
[06:42:43] *** mandeep <mandeep!mandeep@gateway/vpn/privateinternetaccess/mandeepb> has joined ##vulkan
[06:55:40] *** Andrej1 <Andrej1!~Andrej@BSN-143-210-205.dynamic.siol.net> has quit IRC (Read error: Connection reset by peer)
[07:03:05] *** Karyon <Karyon!~Karyon@unaffiliated/karyon> has quit IRC (Ping timeout: 244 seconds)
[07:11:51] *** Karyon <Karyon!~Karyon@unaffiliated/karyon> has joined ##vulkan
[07:34:43] *** Karyon <Karyon!~Karyon@unaffiliated/karyon> has quit IRC (Ping timeout: 258 seconds)
[07:35:13] *** Deluxe <Deluxe!~Deluxe@2001:67c:1220:80e:e9:1d2:f14f:e47f> has joined ##vulkan
[08:05:52] *** Karyon <Karyon!~Karyon@unaffiliated/karyon> has joined ##vulkan
[08:44:11] *** ipe <ipe!~ipe@91-156-247-55.elisa-laajakaista.fi> has joined ##vulkan
[08:56:30] *** [Ristovski] <[Ristovski]!~364e20076@unaffiliated/ristovski> has joined ##vulkan
[08:56:34] *** [Ristovski] is now known as Ristovski
[09:06:29] *** glYoda <glYoda!~kristinam@c-73-25-27-206.hsd1.or.comcast.net> has quit IRC (Quit: glYoda)
[09:08:26] *** mandeep <mandeep!mandeep@gateway/vpn/privateinternetaccess/mandeepb> has quit IRC (Ping timeout: 272 seconds)
[09:12:08] *** ave_milia <ave_milia!ave@gateway/vpn/privateinternetaccess/avemilia> has joined ##vulkan
[09:12:32] *** glYoda <glYoda!~kristinam@c-73-25-27-206.hsd1.or.comcast.net> has joined ##vulkan
[09:15:31] *** ave_milia <ave_milia!ave@gateway/vpn/privateinternetaccess/avemilia> has quit IRC (Client Quit)
[09:15:59] *** ave_milia <ave_milia!ave@gateway/vpn/privateinternetaccess/avemilia> has joined ##vulkan
[09:18:11] *** ave_milia <ave_milia!ave@gateway/vpn/privateinternetaccess/avemilia> has quit IRC (Client Quit)
[09:18:29] *** ave_milia <ave_milia!ave@gateway/vpn/privateinternetaccess/avemilia> has joined ##vulkan
[09:20:40] <ave_milia> clang-tidy complains VK_MAKE_VERSION that it uses signed integers. shouldn't the macro be defined as (((major) << 22U) | ((minor) << 12U) | (patch) instead?
[09:22:48] *** ryp <ryp!ryp@gateway/vpn/privateinternetaccess/ryp> has joined ##vulkan
[09:36:40] <[exa]> the original is just with <<22 and <<12 without 'u' ?
[09:36:57] <[exa]> btw I'd rather seen major/minor properly typed to unsigned
[09:38:50] *** heghe <heghe!~heghe@79.115.36.14> has joined ##vulkan
[09:39:12] *** ryp <ryp!ryp@gateway/vpn/privateinternetaccess/ryp> has quit IRC (Ping timeout: 245 seconds)
[09:42:01] <ave_milia> yes, the original is without the literal
[09:44:56] <ave_milia> for the reference, these are defined in vulcan_core.h
[09:45:06] <ave_milia> I mean vulkan*
[09:46:45] * [exa] wishes C had constexpr functions
[09:47:51] <[exa]> btw which side of << is clang complaining about?
[09:52:46] *** glYoda <glYoda!~kristinam@c-73-25-27-206.hsd1.or.comcast.net> has quit IRC (Quit: glYoda)
[10:02:05] *** ratchetfreak <ratchetfreak!c351a8d8@195.81.168.216> has joined ##vulkan
[10:05:15] <ave_milia> I don't run it directly but via the IDE. however, the text "Use of a signed integer operand with a binary bitwise operator" makes me assume it checks whether both operands are unsigned, and also the fact that VK_MAKE_VERSION(1U, 0U, 0U) does not resolve it. according to
[10:05:17] <ave_milia> https://web.archive.org/web/20190414231748/https://wiki.sei.cmu.edu/confluence/display/c/INT13-C.+Use+bitwise+operators+only+on+unsigned+operands only operations on unsigned integers are well defined
[10:17:26] <ave_milia> the check is called https://clang.llvm.org/extra/clang-tidy/checks/hicpp-signed-bitwise.html
[10:22:08] <[exa]> that's well-defined undefined behavior
[10:22:53] * [exa] has a new opinion on hicpp.
[10:30:30] <ave_milia> there is no well-defined undefined behaviour. there is undefined, implementation-defined and unspecified behaviour. undefined cannot be well-defined. or you have a different opinion?
[10:34:06] <[exa]> basically they are implying that '1<<22' can be undefined on some vulkan-compatible architectures
[10:34:19] <[exa]> which sounds fishy at best
[10:55:05] <dahlia> I thought << worked on bits in memory and didn't care about whether the bits were part of a signed or unsigned value?
[10:59:15] <[exa]> shl certainly does, there's no signedness for the instruction
[10:59:45] <[exa]> only if there's something other than 0-31 or 0-63 on the right side, the instruction behavior depends on architecture
[10:59:52] <[exa]> afaik on amd64 it basically does nothing
[11:00:26] <[exa]> does C specify that signed zero is bitwise same as unsigned zero?
[11:02:15] <dahlia> not sure. I always thought it was for 2's complement
[11:02:37] <dahlia> and afaik everyone uses 2's complement for signed ints
[11:03:12] <ave_milia> [exa]: is there no vulkan-compatible architecture that has 'int' type width <32 bits?
[11:06:13] *** ryp <ryp!ryp@gateway/vpn/privateinternetaccess/ryp> has joined ##vulkan
[11:09:52] <[exa]> ave_milia: hopefully not
[11:10:00] <ave_milia> [exa]: according to the rules of left shifting (N2176 6.5.7.4), left operand (in the case above, 1, and of type 'int' since this is the first available type it fits in), if signed and positive, which it is, should have enough precision to represent 1*2^22 (again from the example), otherwise the behaviour is undefined. so an 'int' of at least 32 bits is required
[11:11:20] <ave_milia> regarding the right operand, it seems sane to use an unsigned integer because the N by which the left operand is shifted cannot be negative
[11:12:02] <[exa]> the point is that the cases when the behavior is defined perfectly overlap for both signed and unsigned integers
[11:13:16] <[exa]> we're probably not going to find a satisfactory solution better than adding the Us there and hoping it doesn't break on some other weirder platforms :]
[11:14:53] <dahlia> some future compiler would probably emit a warning or an error if a signed value was used as the right operand
[11:16:35] <ave_milia> I have dig up the standard while figuring this out (for the Nth time, of course), so the original message should have a bit different rationale: since the definedness in a left shift depends on the left operand (which is user-supplied in VK_MAKE_VERSION), then the rationale why adding U/u literal to the integer constants is to demonstrate that the shift cannot occur on negative amount of bits. aaand to make
[11:16:37] <ave_milia> clang-tidy happy :)
[11:18:10] <dahlia> everyone loves a happy clang-tidy :)
[11:19:05] <dahlia> aren't unsigned ints less efficient? or is that just a java thing
[11:21:32] <ave_milia> also, BIT(n) in the linux kernel uses 1UL << n
[11:21:57] <ave_milia> so, probably UL would be even better
[11:22:11] <ave_milia> nevermind, this is the leftside
[11:22:33] <dahlia> but 1UL is doubleword
[11:23:33] <ave_milia> what does that imply?
[11:23:48] <ave_milia> (I don't know much assembly)
[11:25:58] <dahlia> assembly? looks more like a macro
[11:27:03] <dahlia> I guess it means the result of BIT(n) would be a long unsigned value
[11:27:54] <ave_milia> no, I mean in terms of which assembly instructions would be used to representoperations on it, if that's what you meant. I know that in at&t syntax there are different suffixes for different storage sizes, or something. if that's what you meant. UL is unsigned long
[11:28:47] <ave_milia> yes, it means that it will be an unsigned long
[11:28:52] <dahlia> ya unsigned long which is larger than unsigned
[11:30:33] <dahlia> so if had something like: unsigned val = BIT(n); it might emit a compiler warning about potential overflow
[11:31:28] <dahlia> but I am not a language lawyer, in fact I barely remember this stuff
[12:00:57] *** pa <pa!~pa@unaffiliated/pa> has quit IRC (Remote host closed the connection)
[12:21:15] *** pa <pa!~pa@unaffiliated/pa> has joined ##vulkan
[12:27:45] *** ryp <ryp!ryp@gateway/vpn/privateinternetaccess/ryp> has quit IRC (Ping timeout: 248 seconds)
[12:30:19] <ave_milia> dahlia: I've just tested gcc and clang with unsigned short i = BIT(64); -Wconversion is supposed to warn about it, but it happens only in clang, and gcc is silent. duh
[13:02:36] *** DrGonzo <DrGonzo!~DrGonzo@modemcable080.164-57-74.mc.videotron.ca> has joined ##vulkan
[13:03:18] *** slime <slime!~slime73@blk-215-81-93.eastlink.ca> has joined ##vulkan
[13:20:29] *** slime <slime!~slime73@blk-215-81-93.eastlink.ca> has quit IRC (Quit: This computer has gone to sleep)
[13:21:48] *** pa <pa!~pa@unaffiliated/pa> has quit IRC (Ping timeout: 244 seconds)
[13:34:50] *** pa <pa!~pa@unaffiliated/pa> has joined ##vulkan
[13:35:45] *** DrGonzo <DrGonzo!~DrGonzo@modemcable080.164-57-74.mc.videotron.ca> has quit IRC (Ping timeout: 244 seconds)
[13:50:17] *** RicardasSim <RicardasSim!~RicardasS@78-63-172-44.static.zebra.lt> has quit IRC (Quit: Leaving)
[14:11:01] *** ryp <ryp!ryp@gateway/vpn/privateinternetaccess/ryp> has joined ##vulkan
[15:24:25] *** fling <fling!~fling@fsf/member/fling> has quit IRC (Ping timeout: 268 seconds)
[15:41:35] *** ave_milia <ave_milia!ave@gateway/vpn/privateinternetaccess/avemilia> has quit IRC (Quit: meal time)
[16:24:21] *** fling <fling!~fling@fsf/member/fling> has joined ##vulkan
[16:33:02] *** ryp <ryp!ryp@gateway/vpn/privateinternetaccess/ryp> has quit IRC (Ping timeout: 272 seconds)
[16:43:10] *** Deluxe <Deluxe!~Deluxe@2001:67c:1220:80e:e9:1d2:f14f:e47f> has quit IRC (Remote host closed the connection)
[16:43:58] *** fling <fling!~fling@fsf/member/fling> has quit IRC (Ping timeout: 268 seconds)
[16:46:18] *** Andrej1 <Andrej1!~Andrej@BSN-143-210-205.dynamic.siol.net> has joined ##vulkan
[16:55:52] *** emersont1 <emersont1!~emersont1@2a00:23c5:2e3b:dc00:591a:20c6:b6f6:a4a9> has joined ##vulkan
[17:02:04] *** bpmedley <bpmedley!~bpm@2600:1700:eb20:6050:31ef:32f1:c702:6aa0> has quit IRC (Ping timeout: 276 seconds)
[17:17:53] *** ville <ville!~ville@212-149-214-47.bb.dnainternet.fi> has joined ##vulkan
[17:18:27] *** fling <fling!~fling@fsf/member/fling> has joined ##vulkan
[17:23:38] *** emersont1 <emersont1!~emersont1@2a00:23c5:2e3b:dc00:591a:20c6:b6f6:a4a9> has quit IRC (Remote host closed the connection)
[17:38:46] *** glYoda <glYoda!~kristinam@c-73-25-27-206.hsd1.or.comcast.net> has joined ##vulkan
[17:54:24] *** MrCooper <MrCooper!~MrCooper@116.245.63.188.dynamic.wline.res.cust.swisscom.ch> has quit IRC (Remote host closed the connection)
[17:59:54] *** MrCooper <MrCooper!~MrCooper@2a02:120b:c3ff:5740:cc8b:ea79:b4b2:ff58> has joined ##vulkan
[18:00:32] *** emersont1 <emersont1!~emersont1@2a00:23c5:2e3b:dc00:591a:20c6:b6f6:a4a9> has joined ##vulkan
[18:13:05] *** glYoda <glYoda!~kristinam@c-73-25-27-206.hsd1.or.comcast.net> has quit IRC (Quit: glYoda)
[18:27:58] *** Deluxe <Deluxe!~Deluxe@212.4.150.151> has joined ##vulkan
[18:29:24] *** LunarJetman <LunarJetman!LunarJetma@94.14.216.120> has joined ##vulkan
[18:33:35] *** ciaala <ciaala!~crypt@2a02:120b:2c1f:5f40:6ef0:49ff:feee:4777> has joined ##vulkan
[18:51:19] *** ratchetfreak <ratchetfreak!c351a8d8@195.81.168.216> has quit IRC (Ping timeout: 260 seconds)
[19:48:25] *** ratchetfreak <ratchetfreak!~ratchetfr@ptr-82s3g7muz0p3o58sc34.18120a2.ip6.access.telenet.be> has joined ##vulkan
[20:06:29] *** ImQ009 <ImQ009!~ImQ009@unaffiliated/imq009> has joined ##vulkan
[20:21:43] *** Karyon <Karyon!~Karyon@unaffiliated/karyon> has quit IRC (Ping timeout: 245 seconds)
[20:26:50] *** Karyon <Karyon!~Karyon@unaffiliated/karyon> has joined ##vulkan
[20:59:55] *** emersont1 <emersont1!~emersont1@2a00:23c5:2e3b:dc00:591a:20c6:b6f6:a4a9> has quit IRC (Remote host closed the connection)
[21:00:17] *** emersont1 <emersont1!~emersont1@2a00:23c5:2e3b:dc00:591a:20c6:b6f6:a4a9> has joined ##vulkan
[21:06:04] *** Karyon <Karyon!~Karyon@unaffiliated/karyon> has quit IRC (Ping timeout: 264 seconds)
[21:27:05] *** bulletsquid <bulletsquid!~bulletsqu@24.48.214.223> has joined ##vulkan
[21:27:28] <bulletsquid> Hey, vulkaninfo is throwing some errors around. Is there anyone here who could help me?
[21:41:17] <bnieuwenhuizen> bulletsquid: what platform and HW?
[21:41:46] <bulletsquid> Manjaro linux, idk what HW is
[21:42:12] <bnieuwenhuizen> hardware. Are you running a nvidia, intel or AMD GPU
[21:42:40] <bulletsquid> AMD R9 290X
[21:42:46] <bulletsquid> https://pastebin.com/NtbCJBaU
[21:42:54] <bulletsquid> heres the error i get with vulkaninfo
[21:42:54] <bnieuwenhuizen> okay, try RADV_DEBUG=startup vulkaninfo
[21:43:09] <bnieuwenhuizen> ah
[21:43:12] <bnieuwenhuizen> I see the issue
[21:43:25] <bnieuwenhuizen> you are using the radeon kernel driver while you need to use the amdgpu kernel driver
[21:43:41] <bulletsquid> how do I do that
[21:43:43] <bnieuwenhuizen> to switch you needs some kernel parameters set for boot
[21:43:50] <bnieuwenhuizen> let me look up what they were
[21:44:07] <bnieuwenhuizen> radeon.cik_support=0 amdgpu.cik_support=1
[21:44:19] <bnieuwenhuizen> add that to your kernel commandline
[21:44:20] <bulletsquid> Im pretty new to linux really, so I dont know how to set those parameters
[21:46:02] <bnieuwenhuizen> So assuming you bootloader is grub you can try https://wiki.archlinux.org/index.php/Kernel_parameters#GRUB
[21:50:37] <bulletsquid> Ok, thank you ill try to do it and see if I brick my PC or not
[21:51:33] <bnieuwenhuizen> bulletsquid: try to set them from the menu during booting first, so that if it fails you can just reboot
[21:52:06] <bulletsquid> yes, im reading that now
[21:52:09] <bulletsquid> brb
[21:52:24] *** bulletsquid <bulletsquid!~bulletsqu@24.48.214.223> has quit IRC (Remote host closed the connection)
[22:06:52] *** emersont1 <emersont1!~emersont1@2a00:23c5:2e3b:dc00:591a:20c6:b6f6:a4a9> has quit IRC (Remote host closed the connection)
[22:07:35] *** bulletsquid <bulletsquid!~bulletsqu@24.48.214.151> has joined ##vulkan
[22:07:47] <bulletsquid> bnieuwenhuizen, it worked perfectly, thank you very much :))!
[22:20:26] *** RicardasSim <RicardasSim!~RicardasS@78-63-172-44.static.zebra.lt> has joined ##vulkan
[22:26:45] *** slime <slime!~slime73@24.215.81.93> has joined ##vulkan
[22:27:35] *** bulletsquid <bulletsquid!~bulletsqu@24.48.214.151> has quit IRC (Remote host closed the connection)
[22:33:37] *** Deluxe <Deluxe!~Deluxe@212.4.150.151> has quit IRC (Remote host closed the connection)
[22:40:49] *** ImQ009 <ImQ009!~ImQ009@unaffiliated/imq009> has quit IRC (Quit: Leaving)
[22:55:39] *** ryp <ryp!ryp@gateway/vpn/privateinternetaccess/ryp> has joined ##vulkan
[23:04:27] *** ipe <ipe!~ipe@91-156-247-55.elisa-laajakaista.fi> has quit IRC (Read error: Connection reset by peer)
[23:08:09] *** LunarJetman <LunarJetman!LunarJetma@94.14.216.120> has quit IRC (Ping timeout: 268 seconds)
[23:08:15] *** ciaala <ciaala!~crypt@2a02:120b:2c1f:5f40:6ef0:49ff:feee:4777> has quit IRC (Quit: Konversation terminated!)
[23:11:49] *** ryp <ryp!ryp@gateway/vpn/privateinternetaccess/ryp> has quit IRC (Ping timeout: 246 seconds)
[23:18:15] *** LunarJetman <LunarJetman!LunarJetma@94.14.216.120> has joined ##vulkan
top

   July 8, 2019  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >